mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 02:49:12 +08:00
An out of file descriptors error was causing the async acceptor loops to die. The notification process was unaffected so the workers didn't die. Async workers hitting an error in the acceptor now kill themselves and rely on the arbiter to restart a new worker in their stead.
7 lines
204 B
Python
7 lines
204 B
Python
import tempfile
|
|
files = []
|
|
def app(environ, start_response):
|
|
files.append(tempfile.mkstemp())
|
|
start_response('200 OK', [('Content-type', 'text/plain'), ('Content-length', '2')])
|
|
return ['ok']
|