From dfad27125ed5f838df2c2ce596534ff55e2645e5 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 23 Dec 2019 19:58:10 +0800 Subject: [PATCH] runtime: relax/fix TCP keepalive settings (#1125) --- artiq/firmware/runtime/session.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/firmware/runtime/session.rs b/artiq/firmware/runtime/session.rs index f5c76cf35..4a14f3fb6 100644 --- a/artiq/firmware/runtime/session.rs +++ b/artiq/firmware/runtime/session.rs @@ -629,7 +629,7 @@ pub fn thread(io: Io, aux_mutex: &Mutex, loop { if listener.can_accept() { let mut stream = listener.accept().expect("session: cannot accept"); - stream.set_timeout(Some(1000)); + stream.set_timeout(Some(2250)); stream.set_keep_alive(Some(500)); match host::read_magic(&mut stream) {