[FIX] workers, listen backlog based on the number of workers

bzr revid: al@openerp.com-20130423222245-i3gw87v7rktsb23y
This commit is contained in:
Antony Lesuisse
2013-04-24 00:22:45 +02:00
parent 44569c06a2
commit 6a2e96bf90
+1 -1
View File
@@ -177,7 +177,7 @@ class Multicorn(object):
self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
self.socket.setblocking(0)
self.socket.bind(self.address)
self.socket.listen(8)
self.socket.listen(8*self.population)
def stop(self, graceful=True):
if graceful: