
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
pastegevent
Advanced tools
With pastegevent package you can run your WSGI applications on top of gevent's high performace HTTP server.
Just use egg:pastegevent#gevent as use directive value of your server configuration section:
::
[server:main]
use = egg:pastegevent#gevent
If you need to pastegevent to monkey patch stdlib modules for you, use egg:pastegevent#gevent_patched. This will monkey patch all, except DNS subsystem:
::
[server:main]
use = egg:pastegevent#gevent_patched
But no DNS patching is performed due to inability to reinitialize libevent's DNS subsystem after forking.
If your application relies heavy on asyncronous DNS resolving, you probably still need to patch stdlib to use evdns to resolve domain names. Fortunately there are few steps to workaround issue with evdns initialization.
First thing to do is to be sure not not make any network interactions before server startup, so libevent (and its DNS subsystem in particular) will be not be initialized before daemonization. That means no network code in WSGI application factory.
Then you should configure server to use non-patched version of gevent server factory:
::
[server:main]
use = egg:pastegevent#gevent
and patch DNS yourself in application factory:
::
def app(global_config, **settings):
from gevent.monkey import patch_all
patch_all()
return wsgi_app
Now your application can take the advantages of asyncronous DNS resolving.
FAQs
Run WSGI applications with PasteDeploy and gevent.
We found that pastegevent demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.