]> Cypherpunks repositories - gostls13.git/commit
net: add SetKeepAlivePeriod
authorDavid Presotto <presotto@gmail.com>
Mon, 15 Jul 2013 22:40:55 +0000 (18:40 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 15 Jul 2013 22:40:55 +0000 (18:40 -0400)
commit918922cf850b13fd8bfe9aacb4e595bcd067c656
treec5066531cdc59be2fbfc6b0ae82a98e1a96e7f18
parent4e3051c6e63def826d4f53ecf9cfe7b3e95779ca
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://golang.org/cl/11130044
src/pkg/net/tcpsock_posix.go
src/pkg/net/tcpsockopt_darwin.go [new file with mode: 0644]
src/pkg/net/tcpsockopt_openbsd.go [new file with mode: 0644]
src/pkg/net/tcpsockopt_posix.go [new file with mode: 0644]
src/pkg/net/tcpsockopt_windows.go [new file with mode: 0644]