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
to waitress_fastlisten:main
use
to egg:waitress_fastlisten#main
fast-listen
to HOST:PORT
Do not set "listen =".
Example:
.. code-block:: INI
[server:main]
paste.server_factory = waitress_fastlisten:main
use = egg:waitress_fastlisten#main
fast-listen = 0.0.0.0:8080