Skip to content

Commit 60fd79f

Browse files
authored
fix: increase read_timeout for HTTP streaming stability (#798)
1 parent 5c0a865 commit 60fd79f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

docs/content.en/docs/release-notes/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Information about release notes of Coco Server is provided here.
3131
- fix: fixed incorrect taskbar icon display on linux #783
3232
- fix: fix data inconsistency issue on secondary pages #784
3333
- fix: incorrect status when installing extension #789
34+
- fix: increase read_timeout for HTTP streaming stability #798
3435
- fix: enter key problem #794
3536

3637
### ✈️ Improvements

src-tauri/src/server/http_client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ use tokio::sync::Mutex;
1111

1212
pub(crate) fn new_reqwest_http_client(accept_invalid_certs: bool) -> Client {
1313
Client::builder()
14-
.read_timeout(Duration::from_secs(3)) // Set a timeout of 3 second
15-
.connect_timeout(Duration::from_secs(3)) // Set a timeout of 3 second
14+
.read_timeout(Duration::from_secs(60)) // Set a timeout of 60 second
15+
.connect_timeout(Duration::from_secs(30)) // Set a timeout of 30 second
1616
.timeout(Duration::from_secs(5 * 60)) // Set a timeout of 5 minute
1717
.danger_accept_invalid_certs(accept_invalid_certs) // allow self-signed certificates
1818
.build()

0 commit comments

Comments
 (0)