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

Issue 389007: After draining the body of a 401/407 response, verify that... (Closed)

Created:
11 years, 1 month ago by wtc
Modified:
9 years, 7 months ago
Reviewers:
eroman
CC:
chromium-reviews_googlegroups.com, darin (slow to review), Paweł Hajdan Jr., willchan no longer on Chromium
Visibility:
Public.

Description

After draining the body of a 401/407 response, verify that the keep-alive connection is still connected and idle before reusing it for authentication restart. An impatient server may have closed the connection while waiting for the user to enter the username and password. In socket_test_util.cc, return the mock ERR_UNEXPECTED error synchronously. R=eroman BUG=21675 TEST=new unit test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31846

Patch Set 1 #

Total comments: 3

Patch Set 2 : Replace Peek() by ERR_TEST_PEER_CLOSE_AFTER_NEXT_MOCK_READ #

Patch Set 3 : Update to the current trunk #

Patch Set 4 : Improve comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -11 lines) Patch
M net/http/http_network_transaction.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 2 chunks +90 lines, -6 lines 0 comments Download
M net/socket/socket_test_util.h View 1 2 3 4 chunks +18 lines, -0 lines 0 comments Download
M net/socket/socket_test_util.cc View 1 2 3 5 chunks +15 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
wtc
willchan: I have a question for you in the TODO comment in http_network_transaction.cc. You don't ...
11 years, 1 month ago (2009-11-11 04:00:17 UTC) #1
wtc
Reviewers: eroman, Message: willchan: I have a question for you in the TODO comment in ...
11 years, 1 month ago (2009-11-11 04:00:35 UTC) #2
eroman
lgtm http://codereview.chromium.org/389007/diff/1/4 File net/socket/socket_test_util.cc (right): http://codereview.chromium.org/389007/diff/1/4#newcode277 Line 277: return MockRead(true, ERR_UNEXPECTED); This case is a ...
11 years, 1 month ago (2009-11-11 05:11:44 UTC) #3
eroman
lgtm http://codereview.chromium.org/389007/diff/1/4 File net/socket/socket_test_util.cc (right): http://codereview.chromium.org/389007/diff/1/4#newcode277 Line 277: return MockRead(true, ERR_UNEXPECTED); This case is a ...
11 years, 1 month ago (2009-11-11 05:12:04 UTC) #4
wtc
http://codereview.chromium.org/389007/diff/1/4 File net/socket/socket_test_util.cc (right): http://codereview.chromium.org/389007/diff/1/4#newcode277 Line 277: return MockRead(true, ERR_UNEXPECTED); On 2009/11/11 05:11:44, eroman wrote: ...
11 years, 1 month ago (2009-11-12 01:56:55 UTC) #5
eroman
Lets discuss this in-person tomorrow, or over IM.
11 years, 1 month ago (2009-11-12 10:26:14 UTC) #6
eroman
lgtm nice improvement!
11 years, 1 month ago (2009-11-12 22:08:47 UTC) #7
wtc
11 years, 1 month ago (2009-11-12 23:05:23 UTC) #8
willchan: I added
  connection_.set_is_reused(true);
as we discussed.

eroman: I added some comments and committed the CL.  Thanks!

Powered by Google App Engine
This is Rietveld 408576698