From cf37e579adf75a056909d45c70f8607071446458 Mon Sep 17 00:00:00 2001 From: CodeSteak Date: Tue, 4 Jun 2019 16:17:25 +0200 Subject: [PATCH] FIX: server using 'read_timeout_s' for 'set_write_timeout' --- .../src/protocol/implementation/listen_forever.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/texture-sync-server/src/protocol/implementation/listen_forever.rs b/server/texture-sync-server/src/protocol/implementation/listen_forever.rs index 1b8b149..b0813f5 100644 --- a/server/texture-sync-server/src/protocol/implementation/listen_forever.rs +++ b/server/texture-sync-server/src/protocol/implementation/listen_forever.rs @@ -17,7 +17,7 @@ where // We ignore errors here, so they will be caught in the clients thread. let _ = connection.as_mut().map(|stream| { stream.set_read_timeout(Duration::from_secs(config.read_timeout_s).into())?; - stream.set_write_timeout(Duration::from_secs(config.read_timeout_s).into()) + stream.set_write_timeout(Duration::from_secs(config.write_timeout_s).into())?; }); let handler = handler.clone();