DescriptionUDP 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
Messages
Total messages: 11 (0 generated)
|