Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Issue 102993007: UDP NetConnectivity tests - added read/write states to handle pending (Closed)

Created:
7 years ago by ramant (doing other things)
Modified:
7 years ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

UDP NetConnectivity tests - added read/write states to handle pending read/writes. - During read(), if socket_ returns ERR_IO_PENDING, set read_state_ to READ_STATE_PENDING and avoid further read() until OnReadComplete is called. - During write(), if socket_ returns ERR_IO_PENDING, set write_state_ to WRITE_STATE_ABORT_IN_PROGRESS. Cancel the pending read() and write(). Stop performing any more tests. This change fixes use after free of write_buffer_. BUG=273917 R=jar@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240153

Patch Set 1 : added read/write states to handle pending #

Patch Set 2 : Minor bug fixes #

Patch Set 3 : added a new histogram for write_pending errors #

Patch Set 4 : new NetConnectivity5 histograms #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+274 lines, -15 lines) Patch
M chrome/browser/net/network_stats.h View 1 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/net/network_stats.cc View 1 2 3 17 chunks +37 lines, -15 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 11 chunks +223 lines, -0 lines 1 comment Download

Messages

Total messages: 11 (0 generated)
ramant (doing other things)
Hi Jim, Implemented what we had discussed Friday on how to handle pending reads/writes. Would ...
7 years ago (2013-12-09 00:33:42 UTC) #1
ramant (doing other things)
Hi Jim, Added a new histogram to track tests being stopped due to pending writes. ...
7 years ago (2013-12-09 22:37:45 UTC) #2
jar (doing other things)
lgtm
7 years ago (2013-12-09 22:56:57 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/102993007/70001
7 years ago (2013-12-09 23:06:54 UTC) #4
ramant (doing other things)
Hi Jim, Added new histograms. Would appreciate if you could take another look. thanks raman
7 years ago (2013-12-10 22:40:50 UTC) #5
jar (doing other things)
https://codereview.chromium.org/102993007/diff/90001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/102993007/diff/90001/tools/metrics/histograms/histograms.xml#oldcode31896 tools/metrics/histograms/histograms.xml:31896: name="NetConnectivity4.StartPacket.Sent21.Success.RTT.Packet20"/> Why are there only 2 for NetConnectivity4? I ...
7 years ago (2013-12-10 22:48:44 UTC) #6
jar (doing other things)
Ok... thanks for the pointers into the existing xml file. LGTM
7 years ago (2013-12-10 23:56:07 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/102993007/90001
7 years ago (2013-12-10 23:57:01 UTC) #8
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=234150
7 years ago (2013-12-11 04:26:09 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/102993007/90001
7 years ago (2013-12-11 17:53:51 UTC) #10
commit-bot: I haz the power
7 years ago (2013-12-11 19:32:50 UTC) #11
Message was sent while issue was closed.
Change committed as 240153

Powered by Google App Engine
This is Rietveld 408576698