Skip to content

Commit 1760749

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 3b232c0 commit 1760749

7 files changed

Lines changed: 1338 additions & 188 deletions

File tree

‎docs/server.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ The SDK includes several built-in transport provider implementations:
161161

162162
- Efficient bidirectional HTTP communication
163163
- Session management for multiple client connections
164-
- Configurable keep-alive intervals
164+
- Keep-alive pings on sessions with an open stream, enabled by default every 30 minutes
165+
(`keepAliveInterval`, `null` to disable)
166+
- Eviction of idle sessions — no open stream and no request for a full interval — every
167+
30 minutes by default (`sessionSweepInterval`, `null` to keep sessions until deleted)
165168
- Security validation support
166169
- Graceful shutdown support
167170

0 commit comments

Comments
 (0)