-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Open
Labels
enhancementFeature not a bugFeature not a bug
Milestone
Description
Issue #5471 was closed with the recommendation to reconnect to SSE streams in the application layer.
It would be helpful to expose the retry times in retry fields from the event stream, so that any reconnection attempts in a higher layer could respect the latest retry time if desired.
Currently, the retry times are parsed but they remain in the internal API only, terminating here:
okhttp/okhttp-sse/src/main/kotlin/okhttp3/sse/internal/RealEventSource.kt
Lines 127 to 129 in 75b9c26
| override fun onRetryChange(timeMs: Long) { | |
| // Ignored. We do not auto-retry. | |
| } |
Metadata
Metadata
Assignees
Labels
enhancementFeature not a bugFeature not a bug