Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4842)

Issue 11130044: code review 11130044: net: implement SetKeepALiveIdlePeriod and SetKeepAliveI...

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by p
Modified:
10 years, 9 months ago
Reviewers:
rsc
CC:
golang-dev, dave_cheney.net, rsc, dvyukov, presotto+facebook_gmail.com, nkatsaros, veyron-team_google.com
Visibility:
Public.

Description

net: add SetKeepAlivePeriod Sets both the duration from the last data packet to the first keep alive packet and the duration between keep alive packets to be the passed duration. I've tested the function on both Darwin (10.8.4) and 4.2 Linux. I've compiled (make.bash) for all the OS's and tested (all.bash) on Darwin and Linux.

Patch Set 1 #

Patch Set 2 : diff -r d29da2ced72b https://code.google.com/p/go #

Patch Set 3 : diff -r 10c77beaed35 https://code.google.com/p/go #

Patch Set 4 : diff -r 417ffa35197c https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -0 lines) Patch
M src/pkg/net/tcpsock_posix.go View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
A src/pkg/net/tcpsockopt_darwin.go View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
A src/pkg/net/tcpsockopt_openbsd.go View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
A src/pkg/net/tcpsockopt_posix.go View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download
A src/pkg/net/tcpsockopt_windows.go View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 8
p
Hello golang-dev@googlegroups.com (cc: veyron-team@google.com), I'd like you to review this change to https://code.google.com/p/go
10 years, 9 months ago (2013-07-10 22:12:22 UTC) #1
dave_cheney.net
On 2013/07/10 22:12:22, p wrote: > Hello mailto:golang-dev@googlegroups.com (cc: mailto:veyron-team@google.com), > > I'd like you ...
10 years, 9 months ago (2013-07-11 01:32:36 UTC) #2
rsc
Do you intend to set them differently? It seems like we could have one call ...
10 years, 9 months ago (2013-07-11 02:06:10 UTC) #3
dvyukov
Please Reply All (including codereview bot), otherwise comments are not visible on codereview: https://codereview.appspot.com/11130044/ On ...
10 years, 9 months ago (2013-07-15 14:27:57 UTC) #4
presotto+facebook_gmail.com
Changed the description and made rsc's suggested changes, i.e., changed secs to a time.Duration and ...
10 years, 9 months ago (2013-07-15 15:18:47 UTC) #5
rsc
LGTM
10 years, 9 months ago (2013-07-15 20:37:55 UTC) #6
nkatsaros
Is it really a good idea to set the keepalive time and interval to the ...
10 years, 9 months ago (2013-07-15 21:50:24 UTC) #7
rsc
10 years, 9 months ago (2013-07-15 22:40:58 UTC) #8
*** Submitted as https://code.google.com/p/go/source/detail?r=2eed959dd4c7 ***

net: add SetKeepAlivePeriod

Sets both the duration from the last data packet to the first
keep alive packet and the duration between keep alive packets to be
the passed duration.

I've tested the function on both Darwin (10.8.4) and 4.2 Linux.
I've compiled (make.bash) for all the OS's and tested (all.bash)
on Darwin and Linux.

R=golang-dev, dave, rsc, dvyukov, presotto+facebook, nick
CC=golang-dev, veyron-team
https://codereview.appspot.com/11130044

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b