Skip to content

Commit 46b2cff

Browse files
authored
Merge pull request benoitc#2266 from lyft/fix_max_accept_in_gevent
Set `max_accept` on `gevent` worker-class to 1 when workers > 1
2 parents 9157152 + f145e90 commit 46b2cff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gunicorn/workers/ggevent.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ def run(self):
7676
else:
7777
hfun = partial(self.handle, s)
7878
server = StreamServer(s, handle=hfun, spawn=pool, **ssl_args)
79+
if self.cfg.workers > 1:
80+
server.max_accept = 1
7981

8082
server.start()
8183
servers.append(server)

0 commit comments

Comments
 (0)