From 3e33f94b2003d654f468173e3aa960921475fee1 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 11 Apr 2024 12:58:46 +0200 Subject: pkg/rpctype: allow to disable timeouts Fuzzer don't need timeouts for the RPC connection much, if it does not receive new programs, we will kill it due to "no output" anyway. But they are problematic when we do parallel calls (Exchange), e.g. one call can cancel timeout of an existing call. They also will be more problematic if we also send notifications about programs fuzzer started executing in parallel. And they also marginally slow down things. Disable timeouts in the fuzzer. --- tools/syz-hubtool/hubtool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/syz-hubtool/hubtool.go b/tools/syz-hubtool/hubtool.go index 08d55cd95..a3317801e 100644 --- a/tools/syz-hubtool/hubtool.go +++ b/tools/syz-hubtool/hubtool.go @@ -57,7 +57,7 @@ func main() { return } log.Printf("connecting to hub at %v...", *flagHubAddress) - conn, err := rpctype.NewRPCClient(*flagHubAddress, 1, true) + conn, err := rpctype.NewRPCClient(*flagHubAddress, 1, true, true) if err != nil { log.Fatalf("failed to connect to hub: %v", err) } -- cgit mrf-deployment