Summary
Add stop-server procedure to spiffy
Metadata
- Id: ef61b9448b747ff36330acbb2a98e723ee0673bf
- Trac id: 1616
- Type: enhancement
- Reporter: sjamaan
- Owner: sjamaan
- Cc:
- Status: closed
- Component: extensions
- Estimated difficulty: easy
- Resolution: wontfix
- Priority: minor
- Milestone: someday
- Version: 5.0.0
- Changetime: 2019-05-18 15:57:22 UTC
- Created: 2019-05-09 08:42:25 UTC
- Keywords: spiffy
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.