Skip to content

Commit 15f80ea

Browse files
DavidEichmannlink2xt
authored andcommitted
fix: crate::extensions::idle::Handle::wait() uses a 29 minute timeout
The timeout was incorrectly set to 24 hours. This has been changed to 29 minutes to reflect the documentation on Handle struct and the reccomendation in RFC 2177.
1 parent 8b28ada commit 15f80ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extensions/idle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl<T: Read + Write + Unpin + fmt::Debug + Send> Handle<T> {
120120
impl Future<Output = Result<IdleResponse>> + '_,
121121
stop_token::StopSource,
122122
) {
123-
self.wait_with_timeout(Duration::from_secs(24 * 60 * 60))
123+
self.wait_with_timeout(Duration::from_secs(29 * 60))
124124
}
125125

126126
/// Start listening to the server side responses.

0 commit comments

Comments
 (0)