bottlepy / bottle

bottle.py is a fast and simple micro-framework for python web-applications.
http://bottlepy.org/
MIT License
8.37k stars 1.46k forks source link

Silently exits on suspend/resume #750

Open tko opened 9 years ago

tko commented 9 years ago

I'm running bottle 0.12.8 on a laptop with run(reloader=True, debug=True) and from what I can tell every time after the laptop resumes from sleep the bottle server has silently exited.

I can't think of a good reason to exit because of suspend/resume, but if it must then some explanatory error message and/or exit code would be in order IMO.

defnull commented 9 years ago

The child processes die if the parent process does not touch a file within reload_interval * 2 seconds. This is to prevent a crashing reloader from leaving zombies behind that hog the listening port and have to be killed manually. The reloader does not restart processes that died that way. That could be changed but I don't see a very strong use case.