Summary

Add stop-server procedure to spiffy

Metadata

Description

In some cases, it can be useful to gracefully stop accepting new connections so that the main thread can return. Useful when spawning a temporary server or so.

Changes and comments

[2019-05-18 15:57:22 UTC] sjamaan changed status from new to closed

[2019-05-18 15:57:22 UTC] sjamaan set resolution to wontfix

[2019-05-18 15:57:22 UTC] sjamaan wrote:

With the current design, this is very difficult; we can't stop a "hanging" accept call, which is what Spiffy does immediately upon entering the accept loop. When a request is handled, it fires off a thread to handle the request and loops to accept the next incoming request.