FIX: server using 'read_timeout_s' for 'set_write_timeout'
This commit is contained in:
parent
d5853d7006
commit
cf37e579ad
|
@ -17,7 +17,7 @@ where
|
||||||
// We ignore errors here, so they will be caught in the clients thread.
|
// We ignore errors here, so they will be caught in the clients thread.
|
||||||
let _ = connection.as_mut().map(|stream| {
|
let _ = connection.as_mut().map(|stream| {
|
||||||
stream.set_read_timeout(Duration::from_secs(config.read_timeout_s).into())?;
|
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();
|
let handler = handler.clone();
|
||||||
|
|
Loading…
Reference in New Issue