http-server
http-server copied to clipboard
Potential socket wait on timeout if the server wants to terminate.
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