Commit 529308f2 authored by Jim Fulton's avatar Jim Fulton

Make sure we play well with other asyncore programs.

We need to make sure *our* asyncore is *the* asyncore.
parent 5ddd6f0f
...@@ -83,7 +83,11 @@ ...@@ -83,7 +83,11 @@
# #
############################################################################## ##############################################################################
from medusa import max_sockets import sys
from medusa import max_sockets, asyncore
# We need to make sure *our* asyncore is *the* asyncore
sys.modules['asyncore']=asyncore
CONNECTION_LIMIT=max_sockets.max_select_sockets() CONNECTION_LIMIT=max_sockets.max_select_sockets()
......
...@@ -83,7 +83,11 @@ ...@@ -83,7 +83,11 @@
# #
############################################################################## ##############################################################################
from medusa import max_sockets import sys
from medusa import max_sockets, asyncore
# We need to make sure *our* asyncore is *the* asyncore
sys.modules['asyncore']=asyncore
CONNECTION_LIMIT=max_sockets.max_select_sockets() CONNECTION_LIMIT=max_sockets.max_select_sockets()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment