We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae99f99 commit d99c5d5Copy full SHA for d99c5d5
2 files changed
.changes/fix-windows-timeout-http.md
@@ -0,0 +1,5 @@
1
+---
2
+"tauri": patch
3
4
+
5
+Fixes HTTP timeout not working on Windows when using the `attohttpc` client.
core/tauri/src/api/http.rs
@@ -143,6 +143,11 @@ impl Client {
143
144
if let Some(timeout) = request.timeout {
145
request_builder = request_builder.timeout(timeout);
146
+ #[cfg(windows)]
147
+ {
148
+ // on Windows the global timeout is not respected, see https://github.com/sbstp/attohttpc/issues/118
149
+ request_builder = request_builder.read_timeout(timeout);
150
+ }
151
}
152
153
let response = if let Some(body) = request.body {
0 commit comments