You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4dfdd22
Browse filesBrowse the repository at this point in the historyBrowse files
feat(gax): enforce global timeout for resumable uploads
Enforces ResumableUploadCallSettings.getGlobalTimeout() across the
resumable upload lifecycle.
A scheduled task is registered at future initiation using the client
context executor, covering both session initiation and chunk upload
streaming. On deadline expiry, any in-flight attempt future is cancelled,
the payload stream is closed, and the session future fails with a
non-retryable DeadlineExceededException. The scheduled timeout task is cancelled
cleanly across all terminal outcomes (success, failure, cancellation).
Single payload closure is guaranteed via AtomicBoolean compare-and-set,
with close errors attached via addSuppressed on failure paths and logged
on success paths. Buffer safety is maintained during in-flight timeout
cancellation without stream advancement or buffer corruption.
0 commit comments