Skip to content

Commit 9c87f54

Browse files
authored
feat(api): resume timeouts on error (#399)
1 parent 7dcd340 commit 9c87f54

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Unreleased
2+
- Resume timeouts on error
3+
14
# v0.38.4
25
- Add ixp cm packages
36
- Round trip choice fields in entity defs

api/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,6 +1568,9 @@ impl Client {
15681568
// This is for the case where some sort of network config (e.g. cloudflare) blocks
15691569
// the request and returns invalid content
15701570
true
1571+
} else if let Error::ReqwestError { source, .. } = error {
1572+
// Should split timeouts
1573+
source.is_timeout()
15711574
} else {
15721575
false
15731576
}

0 commit comments

Comments
 (0)