From 8f32df5455c08d8bffd17e0bd69aab9386a97b29 Mon Sep 17 00:00:00 2001 From: Mikio Hara Date: Tue, 30 Jul 2013 16:29:51 +0900 Subject: [PATCH] net: add missing SetKeepAlivePeriod for Plan 9 R=golang-dev, dave CC=golang-dev https://golang.org/cl/12082045 --- src/pkg/net/tcpsock_plan9.go | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.48.1