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

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

View File

@ -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) {