Opened 6 years ago
Closed 6 years ago
#1616 closed enhancement (wontfix)
Add stop-server procedure to spiffy
Reported by: | sjamaan | Owned by: | sjamaan |
---|---|---|---|
Priority: | minor | Milestone: | someday |
Component: | extensions | Version: | 5.0.0 |
Keywords: | spiffy | Cc: | |
Estimated difficulty: | easy |
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.
Note: See
TracTickets for help on using
tickets.
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.