File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 205
205
//! ## Idle connection timeout
206
206
//!
207
207
//! Now, for this example in particular, we need set the idle connection timeout.
208
- //! Otherwise, the connection will be closed immediately .
208
+ //! The default connection timeout is 10 seconds .
209
209
//!
210
210
//! Whether you need to set this in your application too depends on your usecase.
211
211
//! Typically, connections are kept alive if they are "in use" by a certain protocol.
212
212
//! The ping protocol however is only an "auxiliary" kind of protocol.
213
- //! Thus, without any other behaviour in place, we would not be able to observe the pings.
213
+ //! Thus, without any other behaviour in place, we would not be able to observe any pings after 10s .
214
214
//!
215
215
//! ```rust
216
216
//! use std::{error::Error, time::Duration};
You can’t perform that action at this time.
0 commit comments