[Twisted-Python] qtreactor.py is broken (and a patch for it)
Anders Chrigström
ac at strakt.com
Wed Dec 11 05:20:08 EST 2002
The TwistedSocketNotifier in qtreactor.py does not call setEnabled
properly, causing writing to the socket to halt.
Patch to fix it follows:
Index: twisted/internet/qtreactor.py
===================================================================
RCS file: /cvs/Twisted/twisted/internet/qtreactor.py,v
retrieving revision 1.9
diff -u -3 -r1.9 qtreactor.py
--- twisted/internet/qtreactor.py 27 Sep 2002 15:38:18 -0000 1.9
+++ twisted/internet/qtreactor.py 11 Dec 2002 10:09:34 -0000
@@ -102,7 +102,7 @@
log.deferr()
self.reactor.removeReader(w)
self.reactor.removeWriter(w)
- elif why is not None:
+ elif self.watcher:
self.setEnabled(1)
self.reactor.simulate()
Best regards,
Anders
--
Anders Chrigström Email: ac at strakt.com
AB Strakt Phone: +46 31 749 08 96
Norra Ågatan 10
416 64 Göteborg
SWEDEN
More information about the Twisted-Python
mailing list