mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
committed by
GitHub
parent
ae99f99167
commit
d99c5d583b
5
.changes/fix-windows-timeout-http.md
Normal file
5
.changes/fix-windows-timeout-http.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": patch
|
||||
---
|
||||
|
||||
Fixes HTTP timeout not working on Windows when using the `attohttpc` client.
|
||||
@@ -143,6 +143,11 @@ impl Client {
|
||||
|
||||
if let Some(timeout) = request.timeout {
|
||||
request_builder = request_builder.timeout(timeout);
|
||||
#[cfg(windows)]
|
||||
{
|
||||
// on Windows the global timeout is not respected, see https://github.com/sbstp/attohttpc/issues/118
|
||||
request_builder = request_builder.read_timeout(timeout);
|
||||
}
|
||||
}
|
||||
|
||||
let response = if let Some(body) = request.body {
|
||||
|
||||
Reference in New Issue
Block a user