http-server icon indicating copy to clipboard operation
http-server copied to clipboard

Potential socket wait on timeout if the server wants to terminate.

Open EdmondDantes opened this issue 1 year ago • 0 comments

I don't know if this situation is correct or not, but the server will wait for the socket during termination, even if no packets are being sent through this socket. This leads to prolonged termination.

It is recommended to add operation cancellation upon termination event.

https://github.com/amphp/http-server/blob/26001b1ffac11db30c627ed4daba2088951b0ffa/src/Driver/Http1Driver.php#L144

EdmondDantes avatar Jul 03 '24 10:07 EdmondDantes