Skip to content

@remotion/serverless: Retry on socket hang up and ECONNRESET errors#6548

Merged
JonnyBurger merged 1 commit intomainfrom
fix/retry-socket-hang-up
Feb 17, 2026
Merged

@remotion/serverless: Retry on socket hang up and ECONNRESET errors#6548
JonnyBurger merged 1 commit intomainfrom
fix/retry-socket-hang-up

Conversation

@JonnyBurger
Copy link
Member

Summary

  • Adds socket hang up and ECONNRESET to the list of retryable errors in streamRenderer's callFunctionStreaming catch handler
  • Previously only Error: aborted and ETIMEDOUT were retried, causing transient connection failures to be treated as fatal

Closes #6127

Test plan

  • Verify that a socket hang up error during streaming now triggers a retry instead of failing immediately

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 17, 2026 11:52
@vercel
Copy link
Contributor

vercel bot commented Feb 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bugs Ready Ready Preview, Comment Feb 17, 2026 11:59am
remotion Error Error Feb 17, 2026 11:59am

Request Review

@JonnyBurger JonnyBurger changed the title @remotion/serverless: Retry on socket hang up and ECONNRESET errors @remotion/serverless: Retry on socket hang up and ECONNRESET errors Feb 17, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 include socket hang up and ECONNRESET errors

@JonnyBurger JonnyBurger merged commit e5b8128 into main Feb 17, 2026
18 of 20 checks passed
@JonnyBurger JonnyBurger deleted the fix/retry-socket-hang-up branch February 17, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remotion lambda failed with internal socket hang up

1 participant

Comments