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

Issue 1065563006: Add code to set TCP keep alive delay on OSX. (Closed)

Created:
5 years, 8 months ago by mmenke
Modified:
5 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add code to set TCP keep alive delay on OSX. Previously, TCP keep alives were enabled on all desktop platforms, but the delay was not being set on OSX, resulting in not sending keep alives every 45 seconds, like on other platforms. This CL adds the code to do that. It does the same on iOS, though keep alives aren't enabled on mobile platforms, anyways. BUG=468764 Committed: https://crrev.com/7e54f921781f44db1b4cf6002a0d180d37846c58 Cr-Commit-Position: refs/heads/master@{#324319}

Patch Set 1 #

Patch Set 2 : Oops #

Total comments: 5

Patch Set 3 : Response to comments #

Total comments: 3

Patch Set 4 : Move comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M net/socket/tcp_socket_libevent.cc View 1 2 3 3 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (8 generated)
mmenke
Jana: Are you comfortable reviewing this? Don't think we really have a sockets expert.
5 years, 8 months ago (2015-04-06 16:11:19 UTC) #2
mmenke
On 2015/04/06 16:11:19, mmenke wrote: > Jana: Are you comfortable reviewing this? Don't think we ...
5 years, 8 months ago (2015-04-06 16:15:27 UTC) #3
Jana
On 2015/04/06 16:15:27, mmenke wrote: > On 2015/04/06 16:11:19, mmenke wrote: > > Jana: Are ...
5 years, 8 months ago (2015-04-06 23:19:26 UTC) #4
Jana
A couple of comments https://codereview.chromium.org/1065563006/diff/20001/net/socket/tcp_socket_libevent.cc File net/socket/tcp_socket_libevent.cc (right): https://codereview.chromium.org/1065563006/diff/20001/net/socket/tcp_socket_libevent.cc#newcode60 net/socket/tcp_socket_libevent.cc:60: if (setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &on, ...
5 years, 8 months ago (2015-04-06 23:20:01 UTC) #5
mmenke
https://codereview.chromium.org/1065563006/diff/20001/net/socket/tcp_socket_libevent.cc File net/socket/tcp_socket_libevent.cc (right): https://codereview.chromium.org/1065563006/diff/20001/net/socket/tcp_socket_libevent.cc#newcode60 net/socket/tcp_socket_libevent.cc:60: if (setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &on, sizeof(on))) { On 2015/04/06 ...
5 years, 8 months ago (2015-04-07 15:28:06 UTC) #6
Jana
lgtm (Repeating comment because I don't know if you saw it earlier in #4: The ...
5 years, 8 months ago (2015-04-07 19:47:19 UTC) #7
mmenke
Thanks for the review! And I did see your comment about 2 hours, but thanks ...
5 years, 8 months ago (2015-04-07 19:58:11 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1065563006/40001
5 years, 8 months ago (2015-04-07 19:59:10 UTC) #10
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 8 months ago (2015-04-07 19:59:13 UTC) #12
mmenke
On 2015/04/07 19:59:13, I haz the power (commit-bot) wrote: > No LGTM from a valid ...
5 years, 8 months ago (2015-04-07 20:03:01 UTC) #13
mmenke
Ryan: Mind reviewing this?
5 years, 8 months ago (2015-04-08 18:01:31 UTC) #15
mmenke
Ramant: Could you review this? (Jana's not a committer, rch is OOO... This is a ...
5 years, 8 months ago (2015-04-08 19:08:37 UTC) #17
ramant (doing other things)
lgtm https://codereview.chromium.org/1065563006/diff/40001/net/socket/tcp_socket_libevent.cc File net/socket/tcp_socket_libevent.cc (right): https://codereview.chromium.org/1065563006/diff/40001/net/socket/tcp_socket_libevent.cc#newcode70 net/socket/tcp_socket_libevent.cc:70: // Setting the keepalive interval varies by platform. ...
5 years, 8 months ago (2015-04-08 20:08:38 UTC) #18
mmenke
Thanks! https://codereview.chromium.org/1065563006/diff/40001/net/socket/tcp_socket_libevent.cc File net/socket/tcp_socket_libevent.cc (right): https://codereview.chromium.org/1065563006/diff/40001/net/socket/tcp_socket_libevent.cc#newcode70 net/socket/tcp_socket_libevent.cc:70: // Setting the keepalive interval varies by platform. ...
5 years, 8 months ago (2015-04-08 21:22:19 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1065563006/60001
5 years, 8 months ago (2015-04-08 21:24:09 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-09 00:50:32 UTC) #24
commit-bot: I haz the power
5 years, 8 months ago (2015-04-09 00:51:21 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7e54f921781f44db1b4cf6002a0d180d37846c58
Cr-Commit-Position: refs/heads/master@{#324319}

Powered by Google App Engine
This is Rietveld 408576698