[Twisted-Python] getPeer() inside conch

Benjamin Rutt rutt.4 at osu.edu
Thu Oct 1 22:21:07 EDT 2009

(A/B) it looks like the SSHChannel implementation of getPeer() is faulty.
If I change my two-line implementation of getPeer() inside
SSHSessionProcessProtocol to simply 'return self.session.getPeer()', I get:

line 216, in getPeer
    return self.session.getPeer()
line 261, in getPeer
    return('SSH', )+self.conn.transport.getPeer()
AttributeError: SSHServerTransport instance has no attribute 'getPeer'

(C) regarding adding a test, which file do you think would be suitable
here?  something in the twisted/test dir?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20091001/a8a4cc21/attachment.htm 

More information about the Twisted-Python mailing list