Open andrewbanchich opened 2 years ago
Hm yeah I think Oathkeeper really struggles with SSE. I think one option is to increase the timeout values. However, it will still close at some point.
Maybe we could implement keep alive somehow?
Yeah, having keep-alive would be ideal and allow Oathkeeper to differentiate between a working SSE connection and one that needs to be closed.
Maybe it is possible to simply suspend the timeout if the content type is "text/event-stream".
Preflight checklist
Describe the bug
serve.proxy.timeout.write
will close server-sent event connections, even if they are using keep-alives.Reproducing the bug
EventSource
API to connect and process messages.Relevant log output
No response
Relevant configuration
No response
Version
0.38.15-beta.1
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Docker
Additional Context
No response