Losing requests on quit()
quit()
and SIGTERM
currently stop the UV loop immediately, so requests in progress will be lost. Plan:
- stop listening for new requests (might be tricky for TCP/TLS),
- wait for requests to finish (normally bounded by by 10s timeout already),
- add
quit(true)
for immediate quit.