From: Mikio Hara Date: Tue, 30 Jul 2013 07:29:51 +0000 (+0900) Subject: net: add missing SetKeepAlivePeriod for Plan 9 X-Git-Tag: go1.2rc2~895 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8f32df5455c08d8bffd17e0bd69aab9386a97b29;p=gostls13.git net: add missing SetKeepAlivePeriod for Plan 9 R=golang-dev, dave CC=golang-dev https://golang.org/cl/12082045 --- diff --git a/src/pkg/net/tcpsock_plan9.go b/src/pkg/net/tcpsock_plan9.go index 48334fed7e..4781b5986c 100644 --- a/src/pkg/net/tcpsock_plan9.go +++ b/src/pkg/net/tcpsock_plan9.go @@ -65,6 +65,11 @@ func (c *TCPConn) SetKeepAlive(keepalive bool) error { return syscall.EPLAN9 } +// SetKeepAlivePeriod sets period between keep alives. +func (c *TCPConn) SetKeepAlivePeriod(d time.Duration) error { + return syscall.EPLAN9 +} + // SetNoDelay controls whether the operating system should delay // packet transmission in hopes of sending fewer packets (Nagle's // algorithm). The default is true (no delay), meaning that data is