[Twisted-Python] Tiny bug in echoserv_threaded.py example

Andrew Bennetts andrew at puzzling.org
Fri Nov 9 08:12:55 MST 2001


echoserv_threaded.py doesn't work with 1.5.2.  Here's a trivial patch to
fix it:

--- echoserv_threaded.py        Sat Nov 10 02:07:34 2001
+++ echoserv_threaded_fixed.py  Sat Nov 10 02:06:32 2001
@@ -55,7 +55,7 @@
 class Echo(Protocol):
 
     def connectionMade(self):
-        self.messagequeue = Queue.Queue()
+        self.messagequeue = Queue.Queue(0)
         self.handler = Handler(self)
         self.handler.start()
 
Regards,

-Andrew.





More information about the Twisted-Python mailing list