It would be ideal if there was a "nice" shutdown mode, where we accept no new connections and wait for all existing connections to be done.
This could be implemented via Twisted shutdown hooks and ctrl-c .. a second ctrl-c could indicate "no more waiting, shut down now". It would be nice if some status was printed periodically during the "waiting" period (e.g. "X connections remain, waited Y seconds ...").
It would be ideal if there was a "nice" shutdown mode, where we accept no new connections and wait for all existing connections to be done.
This could be implemented via Twisted shutdown hooks and ctrl-c .. a second ctrl-c could indicate "no more waiting, shut down now". It would be nice if some status was printed periodically during the "waiting" period (e.g. "X connections remain, waited Y seconds ...").