mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-10-31 00:40:50 +08:00
node: Add timeouts to daemon connection
This commit is contained in:
@@ -339,6 +339,9 @@ impl Worker {
|
||||
.map_err(UploadError::DaemonConnectionFailed)?;
|
||||
let (mut daemon_r, mut daemon_w) = (daemon.try_clone()?, daemon);
|
||||
|
||||
daemon_r.set_read_timeout(Some(self.timeout))?;
|
||||
daemon_w.set_write_timeout(Some(self.timeout))?;
|
||||
|
||||
// Write the raw request to the daemon, once we've parsed it.
|
||||
daemon_w.write_all(&request)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user