Is there a mechanism to notify the backend server when clients drop a Server-Sent Events connection?

Solution In Progress - Updated -

Issue

  • A JBoss Core Services httpd instance on an Openshift pod based on registry.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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content