diff options
| author | tv <tv@krebsco.de> | 2026-11-02 21:37:48 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-02 21:37:48 +0100 |
| commit | a6a4b846b34b9829b6ed6ead15f13ea00f73c03d (patch) | |
| tree | 4cc54dc7eb61b638b024bddc29aa0281d05f2167 /src/api/dashboard/mod.rs | |
| parent | f2b90bbcdb5347bfb68ee0e3343358e2a8e466dc (diff) | |
api: /stream & dashboard send X-Accel-Buffering
Diffstat (limited to 'src/api/dashboard/mod.rs')
| -rw-r--r-- | src/api/dashboard/mod.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/api/dashboard/mod.rs b/src/api/dashboard/mod.rs index 2557906..db7efa3 100644 --- a/src/api/dashboard/mod.rs +++ b/src/api/dashboard/mod.rs @@ -619,7 +619,11 @@ async fn events(Extension(hub): Extension<Arc<Hub>>) -> impl IntoResponse { } } }; - Sse::new(stream).keep_alive(KeepAlive::default()) + ( + // Through nginx too as it comes, not buffered (`operations.md`). + [(super::UNBUFFERED.0, super::UNBUFFERED.1)], + Sse::new(stream).keep_alive(KeepAlive::default()), + ) } /// The node stops: the client may reconnect once it is back. |
