From 3144fa6e6e1e42413b6b7807f01a6bdb689dcec7 Mon Sep 17 00:00:00 2001 From: Mirari <zf4@illinois.edu> Date: Mon, 3 Dec 2018 00:39:31 -0600 Subject: [PATCH] test --- src/crane/worker.go | 2 ++ src/shared/shared.go | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/crane/worker.go b/src/crane/worker.go index bd7172d..c7ab7e3 100644 --- a/src/crane/worker.go +++ b/src/crane/worker.go @@ -9,6 +9,7 @@ import ( "plugin" "strconv" "strings" + "time" "../failure" "../shared" @@ -90,6 +91,7 @@ func handleMasterRequest(conn net.Conn) { //conn.Write([]byte("Bolt received")) // fmt.Println(*boltInfo) } + time.Sleep(100 * time.Millisecond) } conn.Close() } diff --git a/src/shared/shared.go b/src/shared/shared.go index e01a514..e583b52 100644 --- a/src/shared/shared.go +++ b/src/shared/shared.go @@ -44,8 +44,8 @@ const NumFileReplicas = 4 // How long to wait to get the membership list from the introducer const IntroducerTimeout = 3 * time.Second const GrepTimeout = 5 * time.Second -const ACKTimeout = 4000 * time.Millisecond -const PingInterval = 3000 * time.Millisecond +const ACKTimeout = 3000 * time.Millisecond +const PingInterval = 6000 * time.Millisecond // Simulate false positives by dropping packets before they are sent out const FalsePosChance = 0.0 -- GitLab