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

Issue 8526006: Close idle sockets next time we are about to send data. (Closed)

Created:
9 years, 1 month ago by selim
Modified:
9 years, 1 month ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Close idle sockets next time we are about to send data. This change enables closing idle sockets when client initiates a new socket request rather than using a timer based approach. This prevents waking up network interface only for the purpose of sending a FIN to the server. BUG=101820 TEST=unit-tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110250

Patch Set 1 #

Total comments: 34

Patch Set 2 : addressed code review #

Total comments: 3

Patch Set 3 : addresses one more code convention issue #

Patch Set 4 : address code review about stale idle sockets #

Total comments: 3

Patch Set 5 : refactored #

Patch Set 6 : code conventions #

Total comments: 6

Patch Set 7 : use global variable. #

Total comments: 6

Patch Set 8 : addressed code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -5 lines) Patch
M net/socket/client_socket_pool_base.h View 1 2 3 4 5 6 3 chunks +14 lines, -0 lines 0 comments Download
M net/socket/client_socket_pool_base.cc View 1 2 3 4 5 6 7 chunks +33 lines, -5 lines 0 comments Download
M net/socket/client_socket_pool_base_unittest.cc View 1 2 3 4 5 6 7 3 chunks +82 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
selim
I appreciate it if you can review my first ever chromium patch at your first ...
9 years, 1 month ago (2011-11-10 19:12:53 UTC) #1
willchan no longer on Chromium
Matt, I'm going to let you take a first pass at this. Thanks for all ...
9 years, 1 month ago (2011-11-10 21:04:11 UTC) #2
mmenke
Overall looks good, just a bunch of style nits. I have yet to more than ...
9 years, 1 month ago (2011-11-11 03:33:01 UTC) #3
mmenke
This may seem like a lot of nits, but everyone starts out getting a lot ...
9 years, 1 month ago (2011-11-11 03:40:09 UTC) #4
mmenke
The unit test looks fine to me.
9 years, 1 month ago (2011-11-11 16:41:31 UTC) #5
selim
Hi Matt, Thanks for your very detailed review. I believe I addressed all the comments ...
9 years, 1 month ago (2011-11-11 19:30:58 UTC) #6
mmenke
LGTM, module one nit. http://codereview.chromium.org/8526006/diff/4003/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): http://codereview.chromium.org/8526006/diff/4003/net/socket/client_socket_pool_base.cc#newcode257 net/socket/client_socket_pool_base.cc:257: CleanupIdleSockets(false); Wonder if potentially using ...
9 years, 1 month ago (2011-11-11 20:19:20 UTC) #7
selim
addressed. please see my comment about performance, if there is anything we can do to ...
9 years, 1 month ago (2011-11-11 21:33:05 UTC) #8
mmenke
On 2011/11/11 21:33:05, selim wrote: > addressed. please see my comment about performance, if there ...
9 years, 1 month ago (2011-11-11 21:40:18 UTC) #9
selim
I think it can happen if the peer somehow closed the connection without being able ...
9 years, 1 month ago (2011-11-11 22:12:49 UTC) #10
selim
addressed code review about stale sockets.
9 years, 1 month ago (2011-11-11 22:25:36 UTC) #11
mmenke
On 2011/11/11 22:12:49, selim wrote: > I think it can happen if the peer somehow ...
9 years, 1 month ago (2011-11-11 22:27:08 UTC) #12
willchan no longer on Chromium
On 2011/11/11 21:40:18, Matt Menke wrote: > On 2011/11/11 21:33:05, selim wrote: > > addressed. ...
9 years, 1 month ago (2011-11-11 23:47:45 UTC) #13
willchan no longer on Chromium
http://codereview.chromium.org/8526006/diff/8002/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): http://codereview.chromium.org/8526006/diff/8002/net/socket/client_socket_pool_base.cc#newcode196 net/socket/client_socket_pool_base.cc:196: SetCleanupTimerEnabled(false); I think you should do this differently. The ...
9 years, 1 month ago (2011-11-11 23:47:50 UTC) #14
selim
On 2011/11/11 23:47:50, willchan wrote: > http://codereview.chromium.org/8526006/diff/8002/net/socket/client_socket_pool_base.cc > File net/socket/client_socket_pool_base.cc (right): > > http://codereview.chromium.org/8526006/diff/8002/net/socket/client_socket_pool_base.cc#newcode196 > ...
9 years, 1 month ago (2011-11-12 00:06:46 UTC) #15
willchan no longer on Chromium
On Fri, Nov 11, 2011 at 4:06 PM, <sgurun@google.com> wrote: > On 2011/11/11 23:47:50, willchan ...
9 years, 1 month ago (2011-11-12 01:08:43 UTC) #16
selim
Hi, I did some refactoring to remove ifdef ANDROID_OS and pass cleanup mode as part ...
9 years, 1 month ago (2011-11-15 20:28:53 UTC) #17
willchan no longer on Chromium
Lots of style nits as per style guide. http://codereview.chromium.org/8526006/diff/14001/net/http/http_cache.h File net/http/http_cache.h (right): http://codereview.chromium.org/8526006/diff/14001/net/http/http_cache.h#newcode143 net/http/http_cache.h:143: IdleSocketCleanupMode ...
9 years, 1 month ago (2011-11-15 20:35:29 UTC) #18
selim
Thanks for very quick response. I have to admit that I did not know that ...
9 years, 1 month ago (2011-11-15 20:42:28 UTC) #19
willchan no longer on Chromium
Overloading functions (including constructors) are basically equivalent to default arg values, and so are disallowed ...
9 years, 1 month ago (2011-11-15 20:48:20 UTC) #20
mmenke
I'd recommend you carefully read through the style guide. While it doesn't cover everything, it ...
9 years, 1 month ago (2011-11-15 20:52:04 UTC) #21
selim
I will change it to global variable. As a side note, I can see the ...
9 years, 1 month ago (2011-11-15 21:10:10 UTC) #22
selim
Ok, reverted the changes to use global variable and looked at any possible "nit"s. Can ...
9 years, 1 month ago (2011-11-16 00:44:43 UTC) #23
willchan no longer on Chromium
http://codereview.chromium.org/8526006/diff/12020/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): http://codereview.chromium.org/8526006/diff/12020/net/socket/client_socket_pool_base.cc#newcode28 net/socket/client_socket_pool_base.cc:28: bool g_cleanup_timer_enabled = true; We should probably set a ...
9 years, 1 month ago (2011-11-16 00:51:40 UTC) #24
selim
Here is my comments: http://codereview.chromium.org/8526006/diff/12020/net/socket/client_socket_pool_base.cc File net/socket/client_socket_pool_base.cc (right): http://codereview.chromium.org/8526006/diff/12020/net/socket/client_socket_pool_base.cc#newcode28 net/socket/client_socket_pool_base.cc:28: bool g_cleanup_timer_enabled = true; On ...
9 years, 1 month ago (2011-11-16 01:01:07 UTC) #25
willchan no longer on Chromium
LGTM, fix up the rest and go ahead and send it to the commit queue. ...
9 years, 1 month ago (2011-11-16 01:04:29 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sgurun@google.com/8526006/14008
9 years, 1 month ago (2011-11-16 01:20:53 UTC) #27
selim
checked the commit box!
9 years, 1 month ago (2011-11-16 01:22:50 UTC) #28
commit-bot: I haz the power
9 years, 1 month ago (2011-11-16 04:30:44 UTC) #29
Change committed as 110250

Powered by Google App Engine
This is Rietveld 408576698