@remotion/serverless: Retry on socket hang up and ECONNRESET errors#6548
Merged
JonnyBurger merged 1 commit intomainfrom Feb 17, 2026
Merged
@remotion/serverless: Retry on socket hang up and ECONNRESET errors#6548JonnyBurger merged 1 commit intomainfrom
@remotion/serverless: Retry on socket hang up and ECONNRESET errors#6548JonnyBurger merged 1 commit intomainfrom
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
@remotion/serverless: Retry on socket hang up and ECONNRESET errors
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds retry logic for socket hang up and ECONNRESET network errors that can occur during Lambda function streaming invocations. Previously, only Error: aborted and ETIMEDOUT errors were retried in the transport layer, causing transient connection failures to be treated as fatal errors. The fix aligns the streaming error handling with the existing isFlakyError function that already considers these errors retryable in the browser/renderer execution context.
Changes:
- Extended the retry condition in
streamRenderer's catch handler to includesocket hang upandECONNRESETerrors
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
socket hang upandECONNRESETto the list of retryable errors instreamRenderer'scallFunctionStreamingcatch handlerError: abortedandETIMEDOUTwere retried, causing transient connection failures to be treated as fatalCloses #6127
Test plan
socket hang uperror during streaming now triggers a retry instead of failing immediately🤖 Generated with Claude Code