Hello everyone,
My proposal for delivering a 4h Twisted training in EuroPython 2012 (Florence, July 2-8) has been voted in the community and is set to be delivered on July 5. https://ep2012.europython.eu/conference/talks/twisted-tutorial This turned out to be very popular last year, and had to be repeated on a second day to cover all the audience.
Unfortunately for personal reasons I won't be able to attend the conference. Before I give back the slot to the EuroPython organizers, I wonder if someone that would be attending would want to deliver the training in my place. I have a lot of material already from last year, and I can happily work for the preparation of the training.
I need to give an answer to the organizers in the next few days, so if someone's interested, please speak up!
Thanks,
Orestis
Below is my sample code. I'm hoping to unplug my internet cable and
get a connectionLost. But this doesn't happen. Is there anyway to
detect this?
------
from twisted.internet.protocol import Protocol, ReconnectingClientFactory
from twisted.internet import reactor
class Echo(Protocol):
def connectionMade(self):
print "cool and the gang"
def connectionLost(self, reason):
print "ut-oh %s" % reason
def dataReceived(self, data):
pass
class EchoClientFactory(ReconnectingClientFactory):
def startedConnecting(self, connector):
print 'Started to connect.'
def buildProtocol(self, addr):
print 'Connected.'
print 'Resetting reconnection delay'
self.resetDelay()
return Echo()
def clientConnectionLost(self, connector, reason):
print 'Lost connection. Reason:', reason
ReconnectingClientFactory.clientConnectionLost(self, connector, reason)
def clientConnectionFailed(self, connector, reason):
print 'Connection failed. Reason:', reason
ReconnectingClientFactory.clientConnectionFailed(self, connector,
reason)
if ( __name__ == "__main__" ):
reactor.connectTCP("74.125.224.242", 80, EchoClientFactory() )
#connect to google on port 80
reactor.run()
--
Kevin McIntyre | Software Engineer | Green Charge Networks
Cell 718-249-5058 | kmcintyre(a)greenchargenet.com | www.greenchargenet.com
I recently upgraded to 12.0.0 and was running my process in the shell,
when this error/warning was thrown. Any idea what it means?
DeprecationWarning: twisted.internet.error.PotentialZombieWarning was
deprecated in Twisted 10.0.0: There is no longer any potential for
zombie process.
o = getattr (m, sym)
DeprecationWarning: twisted.protocols.basic.COMMA was deprecated in
Twisted 10.2.0: NetstringReceiver parser state is private.
o = getattr (m, sym)
DeprecationWarning: twisted.protocols.basic.DATA was deprecated in
Twisted 10.2.0: NetstringReceiver parser state is private.
o = getattr (m, sym)
DeprecationWarning: twisted.protocols.basic.LENGTH was deprecated in
Twisted 10.2.0: NetstringReceiver parser state is private.
o = getattr (m, sym)
DeprecationWarning: twisted.protocols.basic.NUMBER was deprecated in
Twisted 10.2.0: NetstringReceiver parser state is private.
o = getattr (m, sym)
DeprecationWarning: twisted.internet.interfaces.IFinishableConsumer
was deprecated in Twisted 11.1.0: Please use IConsumer (and
IConsumer.unregisterProducer) instead.
o = getattr (m, sym)
DeprecationWarning: twisted.internet.interfaces.IReactorArbitrary was
deprecated in Twisted 10.1.0: See IReactorFDSet.
o = getattr (m, sym)
--
Kevin McIntyre | Software Engineer | Green Charge Networks
Cell 718-249-5058 | kmcintyre(a)greenchargenet.com | www.greenchargenet.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
txtorcon is a Twisted-based asynchronous Tor control protocol
implementation. I have tagged txtorcon 0.2, which adds:
. incremental parsing;
. faster TorState startup;
. SAFECOOKIE support;
. several bug fixes;
. options to circuit_failure_rates.py example to make it actually-useful;
. include built documentation + sources in tarball;
. include tests in tarball;
. improved logging;
. a few patches from mmaker and kneufeld
docs: http://readthedocs.org/docs/txtorcon/en/latest/
code: https://github.com/meejah/txtorconhttps://timaq4ygg2iegci7.onion/
Thanks,
- --
mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQEcBAEBAgAGBQJPyQHXAAoJEMJgKAMSgGmn7lUH/2GRMQmXhlZKtPRsZcwACHOp
dm90QMXFAXiYxueGn2S6/Vt0N7ORTrkI2ttz7NXV5EvUr2u5uJbdVOCgI5rj4M/z
CO/hoL8NVw43hNZjF/Hec6lhC8pPI8iRGA329QJKKBn5n/bRUHhHtaCAQcGsSESQ
ue+pvEYHzz6QOAhr7hfJ5zDHVl5++U6BDr4t/O6tmj1bEtwrFXNhX6E7C87rScFa
+X3pt6+tGk84+1j+BLeEenbW6iD8RIwxsanknGMGZRjzMSDh3oH8jZnUpBzEHouk
V2hz9ZjZSXBvGF7/UMyjVHbDEX+kEMsS/9Iv1tHBXCaO9JyCT+UgB6ojWQFsojA=
=2vvP
-----END PGP SIGNATURE-----