forked from M-Labs/artiq
1
0
Fork 0

runtime: relax/fix TCP keepalive settings (#1125)

This commit is contained in:
Sebastien Bourdeauducq 2019-12-23 19:58:10 +08:00
parent b5e1bd3fa2
commit dfad27125e
1 changed files with 1 additions and 1 deletions

View File

@ -629,7 +629,7 @@ pub fn thread(io: Io, aux_mutex: &Mutex,
loop { loop {
if listener.can_accept() { if listener.can_accept() {
let mut stream = listener.accept().expect("session: cannot 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)); stream.set_keep_alive(Some(500));
match host::read_magic(&mut stream) { match host::read_magic(&mut stream) {