zRains opened a new pull request, #3783:
URL: https://github.com/apache/ambari/pull/3783

   ## What changes were proposed in this pull request?
   Added debounce to `reconnect` and invoked `disconnect` to disconnect the 
previous connection instance when websocket performs reconnection.
   ## How was this patch tested?
   Tested manually by comparison.
   
   Before applying this fix, websocket reconnection would create multiple 
active connections (Time pending):
   
   
![SCR-20240424-ofbx](https://github.com/apache/ambari/assets/16508606/6a0d86b9-9d3d-40e1-b263-37b3f6737221)
   
   After a while (approximately 5 minutes), more connections would be created, 
causing page blockage or even crashes:
   
   
![SCR-20240424-ogva](https://github.com/apache/ambari/assets/16508606/62e4b665-453d-4aab-8014-661ce8471f6b)
   
   The fix will maintain one active websocket connection:
   
![SCR-20240424-odwp](https://github.com/apache/ambari/assets/16508606/142eaa71-a823-4865-82a9-d134cd5c7276)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@ambari.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ambari.apache.org
For additional commands, e-mail: dev-h...@ambari.apache.org

Reply via email to