]> Cypherpunks repositories - gostls13.git/commitdiff
net: add missing SetKeepAlivePeriod for Plan 9
authorMikio Hara <mikioh.mikioh@gmail.com>
Tue, 30 Jul 2013 07:29:51 +0000 (16:29 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Tue, 30 Jul 2013 07:29:51 +0000 (16:29 +0900)
R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/12082045

src/pkg/net/tcpsock_plan9.go

index 48334fed7e441666f4bdab1e6018e20f4f819532..4781b5986c8ab8665f7b6775d1443c6db5e706c0 100644 (file)
@@ -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