How to handle closure event for "server push" http connections

116 Views Asked by At

The situation is: a server has many open connections with custom BodyStreamWriter (for server push), and all the clients close the connections on their side. I see two issues:

  1. fasthttp seems keeping all the related internal objects in memory
  2. BodyStreamWriter is not aware of the closure and does not dispose all the related objects/resources too

Is there any way to prevent the issues above? Thanks!

0

There are 0 best solutions below