Idiomatic way to create a read timeout on socket #3793
Unanswered
DariuszOstolski
asked this question in
Q&A
Replies: 1 comment 2 replies
-
That's a fine way to do it. You can also achieve the same with a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Maybe a stupid question but what is the most idiomatic way of creating a read socket timeout?
Currently I have following code:
`async fn handle_client(mut client: Client) {
debug!("New client connected: {}", client.addr);
let handler = handler::BinaryHandler::new(client.store.clone());
....
`
Is it the best idiomatic way to write it?
BR,
Dariusz
Beta Was this translation helpful? Give feedback.
All reactions