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

Issue 4264: If we read nothing (EOF) after sending a request on a... (Closed)

Created:
12 years, 3 months ago by wtc
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

If we read nothing (EOF) after sending a request on a persistent connection, it also indicates that the server closed the connection before receiving the request, and we should resend the request on a new connection. I refactored the main code of HandleIOError into a new ShouldResendRequest method so that I can reuse it to handle the read-nothing case. R=darin BUG=2489 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=2613

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -11 lines) Patch
M net/base/ssl_client_socket.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M net/http/http_network_transaction.h View 1 1 chunk +6 lines, -1 line 0 comments Download
M net/http/http_network_transaction.cc View 1 2 3 2 chunks +22 lines, -10 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 chunk +66 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
wtc
12 years, 3 months ago (2008-09-24 22:59:07 UTC) #1
darin (slow to review)
LGTM can you construct a test for this in http_network_transaction_unittest.cc? it should be possible leveraging ...
12 years, 3 months ago (2008-09-24 23:27:11 UTC) #2
wtc
Please review the new snapshot. I added a unit test and changed ShouldResendRequest as you ...
12 years, 3 months ago (2008-09-25 00:46:46 UTC) #3
darin (slow to review)
12 years, 3 months ago (2008-09-25 00:49:50 UTC) #4
LGTM, thanks for the test!

http://codereview.chromium.org/4264/diff/210/12
File net/http/http_network_transaction_unittest.cc (right):

http://codereview.chromium.org/4264/diff/210/12#newcode495
Line 495: // TODO(wtc): share code with KeepAliveConnectionReset.  These two
tests
This is a very good TODO :-)

Powered by Google App Engine
This is Rietveld 408576698