Skip to content

Commit cf91374

Browse files
committed
Streamable HTTP: Add session sweeping and close hanging streams
Backport of #1130. Also includes the changes from 4186ca1 (resumed streams are registered as the listening stream) and ff78191 (close the response stream after sending a method-not-found error), which #1130 builds upon. Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
1 parent 9369e04 commit cf91374

7 files changed

Lines changed: 1337 additions & 188 deletions

File tree

‎docs/server.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,10 @@ Key features:
164164

165165
- Efficient bidirectional HTTP communication
166166
- Session management for multiple client connections
167-
- Configurable keep-alive intervals
167+
- Keep-alive pings on sessions with an open stream, enabled by default every 30 minutes
168+
(`keepAliveInterval`, `null` to disable)
169+
- Eviction of idle sessions — no open stream and no request for a full interval — every
170+
30 minutes by default (`sessionSweepInterval`, `null` to keep sessions until deleted)
168171
- Security validation support
169172
- Graceful shutdown support
170173

0 commit comments

Comments
 (0)