aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-11-18 19:18:09 +0100
committerDmitry Vyukov <dvyukov@google.com>2016-11-18 19:18:09 +0100
commitdbc7ff38051cba31976238c743b1d8c53ce64470 (patch)
tree4f89c8a0ae42178d472de1282a8dc8f8de7d7830
parente8de4be40738202695638f25c3607b2022c211c9 (diff)
manager: unbreak build
-rw-r--r--syz-hub/hub.go5
-rw-r--r--syz-manager/manager.go4
2 files changed, 5 insertions, 4 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)
}
}
diff --git a/syz-manager/manager.go b/syz-manager/manager.go
index 0041432e0..2c07d5388 100644
--- a/syz-manager/manager.go
+++ b/syz-manager/manager.go
@@ -169,8 +169,8 @@ func RunManager(cfg *config.Config, syscalls map[int]bool, suppressions []*regex
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.ServeCodec(jsonrpc.NewServerCodec(conn))
}
}()