Opened 5 years ago

Closed 5 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


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.

Change History (1)

comment:1 Changed 5 years ago by sjamaan

Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.