This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients kiilerix, pitrou
Date 2012-01-06.17:52:01
SpamBayes Score 0.005116704
Marked as misclassified No
Message-id <1325872321.78.0.377841113146.issue13721@psf.upfronthosting.co.za>
In-reply-to
Content
> Alternatively all SSLSocket methods should take care not to dereference 
> self._sslobj and they should respond properly - preferably with a
> socket/ssl exception.

In getpeercert()'s case, I think None would be the right thing to return (as cipher() and compression() already do).
But, yes, this deserves fixing.

> One good(?) reason to wrap connected sockets is to be able to use
> socket.create_connection which tries all IP adresses of a fqdn before
> it fails. (Btw: That isn't described in the documentation! That
> confused me while debugging this.)

Which documentation? create_connection's? Feel free to propose an improved wording.
History
Date User Action Args
2012-01-06 17:52:01pitrousetrecipients: + pitrou, kiilerix
2012-01-06 17:52:01pitrousetmessageid: <1325872321.78.0.377841113146.issue13721@psf.upfronthosting.co.za>
2012-01-06 17:52:01pitroulinkissue13721 messages
2012-01-06 17:52:01pitroucreate