[Twisted-Python] twisted.internet.udp woes

Toni Andjelkovic toni at soth.at
Sat Feb 1 10:36:45 MST 2003


Itamar Shtull-Trauring wrote on Sat, Feb 01 2003 (11:39:08 -0500):
> listenUDP does not accept factories. I'll add an assert to test for
> this. until then, read the docs - twistedmatrix.com/documents/howto/udp

Thanks for the explanation.

However, doc/examples/echoserv_ssl.py fails with another error.
It looks like internet.tcp.Connection methods get called instead of
internet.ssl.Connection methods:

Traceback (most recent call last):
  File "/usr/local/lib/python2.2/site-packages/twisted/internet/app.py", line 675, in run
    main.run(installSignalHandlers=installSignalHandlers)
  File "/usr/local/lib/python2.2/site-packages/twisted/internet/main.py", line 106, in run
    _getReactor().run()
  File "/usr/local/lib/python2.2/site-packages/twisted/internet/default.py", line 113, in run
    self.mainLoop()
  File "/usr/local/lib/python2.2/site-packages/twisted/internet/default.py", line 124, in mainLoop
    self.doIteration(t)
--- <exception caught here> ---
  File "/usr/local/lib/python2.2/site-packages/twisted/internet/default.py", line 450, in doSelect
    why = getattr(selectable, method)()
  File "/usr/local/lib/python2.2/site-packages/twisted/internet/tcp.py", line 97, in doRead
    data = self.socket.recv(self.bufferSize)
SSL.WantReadError: 
Traceback (most recent call last):
  File "/usr/local/lib/python2.2/site-packages/twisted/internet/app.py", line 675, in run
    main.run(installSignalHandlers=installSignalHandlers)
  File "/usr/local/lib/python2.2/site-packages/twisted/internet/main.py", line 106, in run
    _getReactor().run()
  File "/usr/local/lib/python2.2/site-packages/twisted/internet/default.py", line 113, in run
    self.mainLoop()
  File "/usr/local/lib/python2.2/site-packages/twisted/internet/default.py", line 124, in mainLoop
    self.doIteration(t)
--- <exception caught here> ---
  File "/usr/local/lib/python2.2/site-packages/twisted/internet/default.py", line 463, in doSelect
    selectable.connectionLost(failure.Failure(why))
  File "/usr/local/lib/python2.2/site-packages/twisted/internet/tcp.py", line 136, in connectionLost
    self._closeSocket()
  File "/usr/local/lib/python2.2/site-packages/twisted/internet/tcp.py", line 128, in _closeSocket
    self.socket.shutdown(2)
exceptions.TypeError: shutdown() takes exactly 0 arguments (1 given)

Cheers,
-- 
Toni Andjelkovic
<toni at soth.at>





More information about the Twisted-Python mailing list