Repository navigation
Conversation
Shubh3819
force-pushed
the
fix/windows-wait-deadline-timeout
branch
from
November 27, 2026 09:19
e12607e to
88b7969
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes timeout handling in
wait_for_review()so that the SDK correctly distinguishes between the caller's overall wait deadline and timeouts occurring inside individual HTTP requests.Previously, when an HTTP read timed out just before the overall wait deadline, the SDK could incorrectly raise a
ProoflineErrorinstead of returningTIMED_OUT. This was particularly noticeable on Windows, where timing precision could make the existing deadline check unreliable.What changed
1. Track where a timeout comes from
Added explicit timeout provenance to distinguish between:
wait_for_review().This ensures that only timeouts caused by the caller's deadline are treated as
TIMED_OUT. Independent HTTP timeouts continue to raise the appropriate SDK error.2. Preserve timeout information across the transport layer
Updated the HTTP transport to retain information about which timeout phase was limited by the caller's deadline.
This includes:
3. Preserve HTTP error responses
Ensured that a timeout while reading a response body does not accidentally replace an existing HTTP error.
For example, a
403response must remain a403even if reading its body takes too long. Existing handling of retryable responses such as429and503is also preserved.4. Add regression tests
Added tests covering:
403.Validation
git diff --check: passedCloses #89