manusa / yakc

Yet another Kubernetes Client - Lower level Java REST client for Kubernetes API
https://blog.marcnuri.com/tag/yakc/
Apache License 2.0
45 stars 11 forks source link

Quarkus-Undertow + ServerSentEvents problems #35

Closed manusa closed 3 years ago

manusa commented 3 years ago

Description

After adding quarkus-undertow extension when implementing [Dashboard] feat: Pod container terminal initial implementation, watcher implementation is "broken" or not working as expected.

Adding undertow implies that RESTEasy runs as a Servlet Filter instead of running on top of Vert.x

This fact causes that client disconnections will no longer be detected and if SSE Observable has been subscribed in other threads, this will cause the Thread to keep running. This combined with the fact of the new self-healing behavior means that Threads are spawned continuously, especially in those environments when access to some resources is forbidden. In addition subscriptions are never disposed.

Relates to: