VSGI.Server should handle theSIGTERM by calling quit.
For FastCGI and SCGI, there is already some proper teardown performed, but this is only triggered if the application quit by itself.
For FastCGI, it's possible to set RequestFlags.FAIL_ACCEPT_ON_INTER so that an accept call fails if a SIGINT is received. It might be necessary to check the signal as well in the loop.
It might be nice to integrate a cancellable API with #165.
VSGI.Server
should handle theSIGTERM
by calling quit.For FastCGI and SCGI, there is already some proper teardown performed, but this is only triggered if the application quit by itself.
For FastCGI, it's possible to set
RequestFlags.FAIL_ACCEPT_ON_INTER
so that anaccept
call fails if aSIGINT
is received. It might be necessary to check the signal as well in the loop.It might be nice to integrate a cancellable API with #165.