This tiny package allows the waitress WSGI server to immediatly pre-bind to a port and listen to it. It waits then for the app to start up and passes then requests further.
In your paste based WSGI configuration in [server:main]
set:
paste-server-factory
towaitress_fastlisten:main
use
toegg:waitress_fastlisten#main
fast-listen
toHOST:PORT
Do not set "listen =".
Example:
[server:main]
paste.server_factory = waitress_fastlisten:main
use = egg:waitress_fastlisten#main
fast-listen = 0.0.0.0:8080