Skip to content

Commit

Permalink
Send timeout too
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisVaughan committed Oct 1, 2024
1 parent 32b6ec1 commit f9d411a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/amalthea/src/socket/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ impl Socket {
if let Err(error) = socket.set_rcvtimeo(10000) {
return Err(Error::CreateSocketFailed(name, error));
}
if let Err(error) = socket.set_sndtimeo(10000) {
return Err(Error::CreateSocketFailed(name, error));
}

// Set the socket's identity, if supplied
if let Some(identity) = identity {
Expand Down

0 comments on commit f9d411a

Please sign in to comment.