Skip to main content

Fast listen on port as a wrapper for waitress WSGI server.

Project description

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.

Usage

In your paste based WSGI configuration in [server:main] set:

  • paste-server-factory to waitress_fastlisten:main

  • use to egg:plone.recipe.zope2instance#main

  • fast-listen to HOST:PORT

Do not set “listen =”.

Example:

[server:main]
paste.server_factory = plone.recipe.zope2instance:main
use = egg:plone.recipe.zope2instance#main
fast-listen = 0.0.0.0:8080

Changelog

1.0.0rc1 (2021-12-04)

  • Isolated code from plone.recipe.zope2instance. [jensens]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

waitress_fastlisten-1.0.0rc1.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

waitress_fastlisten-1.0.0rc1-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page