Commit 10753f4
邵广超
fix: ignore SSE retry: field to prevent McpTransportException
The SSE specification includes 'retry:' as a valid field for setting
the reconnection interval. However, the SseLineSubscriber treats any
unrecognized line as an error, causing McpTransportException when
MCP servers (e.g., rmcp-based servers like SurrealDB) emit retry
directives in SSE responses.
This fix adds a handler that silently ignores 'retry:' lines, matching
the existing behaviour for ':' comment lines.
Related: servers using rmcp (Rust MCP SDK) send 'retry: 3000' by
default, which triggers this error and breaks Streamable HTTP
connections to SurrealDB and other rmcp-based MCP servers.1 parent 8ee8ccb commit 10753f4
1 file changed
Lines changed: 5 additions & 0 deletions
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
182 | 187 | | |
183 | 188 | | |
184 | 189 | | |
| |||
0 commit comments