workers.geventlet

Module Contents

Classes

EventletWorker()

Functions

_eventlet_sendfile(fdout,fdin,offset,nbytes)
_eventlet_serve(sock,handle,concurrency) Serve requests forever.
_eventlet_stop(client,server,conn) Stop a greenlet handling a request and close its connection.
patch_sendfile()
_eventlet_sendfile(fdout, fdin, offset, nbytes)
_eventlet_serve(sock, handle, concurrency)

Serve requests forever.

This code is nearly identical to eventlet.convenience.serve except that it attempts to join the pool at the end, which allows for gunicorn graceful shutdowns.

_eventlet_stop(client, server, conn)

Stop a greenlet handling a request and close its connection.

This code is lifted from eventlet so as not to depend on undocumented functions in the library.

patch_sendfile()
class EventletWorker
patch()
is_already_handled(respiter)
init_process()
handle_quit(sig, frame)
handle_usr1(sig, frame)
timeout_ctx()
handle(listener, client, addr)
run()