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

Issue 63139: Add a boolean data member called_socket_read_ to help... (Closed)

Created:
11 years, 8 months ago by wtc
Modified:
9 years, 7 months ago
Reviewers:
eroman
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add a boolean data member reading_body_from_socket_ to help DoReadBodyComplete() determine whether a result of 0 actually comes from a socket read, indicating EOF. In unit tests, need to call RunAllPending() before calling idle_socket_count() to get an accurate idle socket count because idle sockets are added to the connection pool with a PostTask. R=eroman BUG=9880 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=13511

Patch Set 1 #

Total comments: 8

Patch Set 2 : State variable renamed reading_body_from_socket_, added comments #

Total comments: 1

Patch Set 3 : '' #

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

Messages

Total messages: 7 (0 generated)
wtc
11 years, 8 months ago (2009-04-08 21:43:56 UTC) #1
eroman
http://codereview.chromium.org/63139/diff/1/2 File net/http/http_network_transaction.cc (right): http://codereview.chromium.org/63139/diff/1/2#newcode847 Line 847: called_socket_read_ = false; I'm not enthusiastic about this ...
11 years, 8 months ago (2009-04-08 23:24:39 UTC) #2
wtc
http://codereview.chromium.org/63139/diff/1/2 File net/http/http_network_transaction.cc (right): http://codereview.chromium.org/63139/diff/1/2#newcode847 Line 847: called_socket_read_ = false; On 2009/04/08 23:24:40, eroman wrote: ...
11 years, 8 months ago (2009-04-08 23:40:13 UTC) #3
eroman
http://codereview.chromium.org/63139/diff/1/2 File net/http/http_network_transaction.cc (right): http://codereview.chromium.org/63139/diff/1/2#newcode847 Line 847: called_socket_read_ = false; On 2009/04/08 23:40:13, wtc wrote: ...
11 years, 8 months ago (2009-04-09 00:17:51 UTC) #4
eroman
lgtm with previous comments.
11 years, 8 months ago (2009-04-09 00:21:30 UTC) #5
wtc
OK, as we discussed, I renamed the boolean member reading_body_from_socket_, and added a lot of ...
11 years, 8 months ago (2009-04-09 22:13:53 UTC) #6
eroman
11 years, 8 months ago (2009-04-09 22:38:49 UTC) #7
LGTM.

Make sure to update the CL description before committing (to reflect new
variable name).

http://codereview.chromium.org/63139/diff/2001/3002
File net/http/http_network_transaction.h (right):

http://codereview.chromium.org/63139/diff/2001/3002#newcode244
Line 244: // Boolean state variable:
This seems like a repetition of the variable type.

Powered by Google App Engine
This is Rietveld 408576698