-
Notifications
You must be signed in to change notification settings - Fork 2.7k
feat: add new plugin sse to support Server-Sent Events (SSE) #12498
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
base: master
Are you sure you want to change the base?
Conversation
|
Please fix the errors reported by CI. |
update the comments
I fixed the issue from last build. could you please approve another CI build? |
|
@billmoling There are still some issues with the tests. You can try testing locally. I'm used to checking these below: |
|
What's the difference between this and using the |
|
This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If you think that's incorrect or this pull request should instead be reviewed, please simply write any comment. Even if closed, you can still revive the PR at any time or discuss it on the [email protected] list. Thank you for your contributions. |
Description
Motivation
This PR introduces a new
sseplugin for Apache APISIX that enables support for Server-Sent Events (SSE), a mechanism for servers to push updates to the browser over a long-lived HTTP connection.SSE requires specific proxy settings and headers to ensure streaming behavior works reliably, which are not enabled by default in APISIX. This plugin configures those behaviors for routes or services that serve SSE.
Features
proxy_read_timeoutto prevent SSE connections from being cut off.Content-Type: text/event-stream; charset=utf-8Cache-ControlConnectionX-Accel-Bufferingproxy_read_timeout,cache_control, andconnection_header.Content-Typeheader (enabled by default).Which issue(s) this PR fixes:
Fixes #10030 #10204
Checklist