Is there a mechanism to notify the backend server when clients drop a Server-Sent Events connection?
Issue
-
A
JBoss Core Services httpd
instance on anOpenshift
pod based onregistry.redhat.io/rhel8/s2i-core:1
. -
This instance is a reverse proxy, with an authentication plugin, used as a frontend to another pod that sends push notifications to users.
-
This feature is developed with the
Server-Sent Events API
, and keeps a connection with each client alive sending keep-alives periodically. -
After running several tests, it can be observed that when a client closes its browser, the connection is not closed, it stays alive and it is only closed when the backend drops the connection.
Environment
- Red Hat JBoss Core Services Apache HTTP Server as a reverse proxy
- Any backend runtime supporting Server-Sent Events
- Client web browser
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.