[Twisted-Python] twisted.internet.ssl woes

Jp Calderone exarkun at intarweb.us
Mon Feb 3 08:52:57 MST 2003


On Mon, Feb 03, 2003 at 01:14:02PM +0100, Toni Andjelkovic wrote:
> Toni An?elkovi? wrote on Sat, Feb 01 2003 (18:36:45 +0100):
> > 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:
> 
> Just getting my feet wet with Twisted, so i can't provide you
> with a detailed analysis for now. As far as i've seen this line
> is being called twice:
> 
> > --- <exception caught here> ---
> >   File "/usr/local/lib/python2.2/site-packages/twisted/internet/default.py", line 450, in doSelect
> >     why = getattr(selectable, method)()
> 
> which are
> 
> <bound method Port.doRead of <twisted.internet.protocol.Factory on 8000>>
> <bound method Server.doRead of <Echo #0 on 8000>>
> 
> The first call does the accept() and works (server certificate is
> transferred), but the second fails. 
> 
> I am unable to deduce why tcp.Connection.doRead is being called
> instead of ssl.Connection.doRead; either it is acquired along some
> inheritance path from protocol.Protocol (?!), or this call gets
> delegated to tcp.Connection.doRead elsewhere.
> 

   Pretty close - the inheritance structure was not-quite-correct :)  It
should be fixed now, thanks for the report and the ideas :)

   Jp

-- 
C/C++/Java/Perl/Python/Smalltalk/PHP/ASP/XML/Linux (User+Admin)
Genetic Algorithms/Genetic Programming/Neural Networks
Networking/Multithreading/Legacy Code Maintenance/OpenGL
See my complete resume at http://intarweb.us:8080/
-- 
 up 49 days, 19:50, 3 users, load average: 0.00, 0.05, 0.06
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20030203/5545f8f0/attachment.sig>


More information about the Twisted-Python mailing list