mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-24 15:49:26 +00:00
Per the SSE specification, a "retry" field whose value is not made up solely of ASCII digits must be ignored. ServerSentEventHttpMessageReader passed the value straight to Long.parseLong, so "retry:none", an empty "retry:", or a value too large for a long raised NumberFormatException and terminated the event stream. A client cannot control what a server sends, so an unusable reconnection hint would kill an otherwise healthy subscription. Signed-off-by: Artyom Tsvirko <36863599+lArtiquel@users.noreply.github.com>