[Twisted-Python] Factory.startFactory being called twice.
Itamar Shtull-Trauring
twisted at itamarst.org
Wed Jan 30 09:07:59 MST 2002
andrew-twisted at puzzling.org wrote:
> I recently upgraded to 0.14.0, but I'm still seeing Factory.startFactory()
> being called twice when I start my server.
OK, I fixed it in CVS. I tested, and now it only runs once, both when
loading from a .tap and when being run directly.
Here's the patch:
Index: twisted/internet/tcp.py
===================================================================
RCS file: /cvs/Twisted/twisted/internet/tcp.py,v
retrieving revision 1.42
diff -c -r1.42 tcp.py
*** twisted/internet/tcp.py 29 Jan 2002 17:25:25 -0000 1.42
--- twisted/internet/tcp.py 30 Jan 2002 16:13:11 -0000
***************
*** 392,398 ****
self.fileno = self.socket.fileno
self.numberAccepts = 100
self.startReading()
- self.factory.startFactory()
def approveConnection(self, sock, addr):
"""Check that this is a connection we are willing to accept.
--- 392,397 ----
More information about the Twisted-Python
mailing list