Skip to content

chore: 🐛 add keep-alive header for streaming to stop premature close #5671

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sestinj
Copy link
Contributor

@sestinj sestinj commented May 14, 2025

Description

I'm not 100% certain that this solves the premature close error, but without an easy way to reproduce yet it seems like a worthwhile attempt.

Checklist

  • I've read the contributing guide
  • The relevant docs, if any, have been updated or created
  • The relevant tests, if any, have been updated or created

Tests

I do not think that tests of 15+ second-long streams would be appropriate to run in CI


Summary by mrge

Added a keep-alive header to streaming requests to prevent connections from closing too early.

@sestinj sestinj requested a review from a team as a code owner May 14, 2025 16:17
@sestinj sestinj requested review from RomneyDa and removed request for a team May 14, 2025 16:17
Copy link

netlify bot commented May 14, 2025

Deploy Preview for continuedev canceled.

Name Link
🔨 Latest commit b03f0df
🔍 Latest deploy log https://app.netlify.com/sites/continuedev/deploys/6824c20b654430000867962a

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

1 participant