I noticed that there is currently a graceful shutdown feature, but I found that if a request is still being processed and takes a long time, the client may receive a ConnectionCloseException. I think it should behave more like Tomcat’s graceful shutdown: first stop accepting new requests, then wait for all ongoing requests to complete before actually shutting down.
- Close discovery.
- Wait for all requests to finish processing.
- Shutdown the transport
- ....
I noticed that there is currently a graceful shutdown feature, but I found that if a request is still being processed and takes a long time, the client may receive a ConnectionCloseException. I think it should behave more like Tomcat’s graceful shutdown: first stop accepting new requests, then wait for all ongoing requests to complete before actually shutting down.