DescriptionRe-land greedy read support for SpdySession
Added Unit test to close the socket during spdy_session's
read and verifying that getting new URLs from the same
network session don't result in a failure.
Modified mock socket code to close the connection if
mock_read closes the connection (because of ERR_CONNECTION_CLOSED error).
Implement greedy approach to read all the data and process
it from the ClientSocket until we block.
Implemented the greedy approach to improves the network
stack performance on the mobile.
spdy_session_test_util.* files have the common code between
SpdySessionSpd2Test and SpdySessionSpd3Test. Created this
file to reduce errors and to avoid duplicating of code.
Review URL: https://chromiumcodereview.appspot.com/11644088
The change adds a scoped_refptr to SpdySession in DoLoop
to clean up the state and to finish pending reads, in case
SpdyFramer receives GOAway and closes all streams.
DoReadComplete was holding the last reference before and
DoLoop was accessing the object after DoReadComplete deleted
the object at the end of the function.
Review URL: https://codereview.chromium.org/12212102
Added unit tests for use after free of SpdySession
and unit test to test yielding + async during Read.
A test that crashes when scoped_refptr to SpdySession
deleted from DoLoop.
Added the following test per rch@ to test interactions of
yielding + async during Read.
Do the following MockReads and verify all the data is
consumed and SpdySession has yielded during Read.
SYNCHRONOUS 8K
SYNCHRONOUS 8K
SYNCHRONOUS 8K
SYNCHRONOUS 2K
ASYNC 8K
SYNCHRONOUS 8K
SYNCHRONOUS 8K
SYNCHRONOUS 8K
SYNCHRONOUS 2K
Review URL: https://chromiumcodereview.appspot.com/12207122
Reverted URL: https://chromiumcodereview.appspot.com/13608003/
BUG=175574, 166958, 224701, 175069
R=rch@chromium.org, jar@chromium.org
TEST=network unit tests
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194540
Patch Set 1 #
Total comments: 4
Patch Set 2 : Reverting the Revert of 181390 and disabled the tests in patch 1 #
Total comments: 2
Patch Set 3 : Fixing the regression with SpdySession - handle ERR_CONNECTION_CLOSED after read #Patch Set 4 : histograms to track bytes_read during init #
Total comments: 2
Patch Set 5 : Two new histograms for total bytes read #
Total comments: 3
Patch Set 6 : Changed histogram name and added DCHECK in DoLoop #Patch Set 7 : Return ERR_CONNECTION_CLOSED when SpdySession is closed #Patch Set 8 : Merging changes from tip #
Messages
Total messages: 12 (0 generated)
|