diff options
Diffstat (limited to 'syz-hub')
| -rw-r--r-- | syz-hub/hub.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/syz-hub/hub.go b/syz-hub/hub.go index a203149c5..bb5128727 100644 --- a/syz-hub/hub.go +++ b/syz-hub/hub.go @@ -11,6 +11,7 @@ import ( "net" "net/rpc" "sync" + "time" . "github.com/google/syzkaller/log" . "github.com/google/syzkaller/rpctype" @@ -71,8 +72,8 @@ func main() { Logf(0, "failed to accept an rpc connection: %v", err) continue } - conn.SetKeepAlive(true) - conn.SetKeepAlivePeriod(time.Minute) + conn.(*net.TCPConn).SetKeepAlive(true) + conn.(*net.TCPConn).SetKeepAlivePeriod(time.Minute) go s.ServeConn(conn) } } |
