From a102e5fcecdeee2fc57a30f777e6a3fe3702af93 Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 21 Mar 2020 00:11:23 +0100 Subject: [PATCH] main: wait for more tcp send headroom --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 551649e..9dccd77 100644 --- a/src/main.rs +++ b/src/main.rs @@ -154,7 +154,7 @@ fn main() -> ! { if ! socket.is_open() { let _ = socket.listen(TCP_PORT); session.reset(); - } else if socket.can_send() && socket.can_recv() && socket.send_capacity() - socket.send_queue() > 128 { + } else if socket.can_send() && socket.can_recv() && socket.send_capacity() - socket.send_queue() > 1024 { match socket.recv(|buf| session.feed(buf)) { Ok(SessionOutput::Nothing) => {} Ok(SessionOutput::Command(command)) => match command {