Rev1791, Fix gevent 1.2 compatibility
This commit is contained in:
parent
86b0046f28
commit
9a1735f37d
3 changed files with 6 additions and 3 deletions
|
@ -55,7 +55,7 @@ class ConnectionServer:
|
|||
if port: # Listen server on a port
|
||||
self.pool = Pool(1000) # do not accept more than 1000 connections
|
||||
self.stream_server = StreamServer(
|
||||
(ip.replace("*", ""), port), self.handleIncomingConnection, spawn=self.pool, backlog=500
|
||||
(ip.replace("*", "0.0.0.0"), port), self.handleIncomingConnection, spawn=self.pool, backlog=500
|
||||
)
|
||||
if request_handler:
|
||||
self.handleRequest = request_handler
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue