Author senko
Recipients cbay, ezio.melotti, pitrou, senko
Date 2013-07-07.13:48:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Here's a patch that adds checks and ValueError raises to and SSLSocket.write.

My first attempt was to add the check to _checkClosed to mirror the IOBase._checkClosed, but in SSLSocket its semantics are different (the idea is for the subclass to add custom checks if needed), and it's called from a lot of places that do gracefully handle closed sockets.

So I opted to add it manually to only the read and write methods (which allowed for more specific error messages).
Date User Action Args
2013-07-07 13:48:52senkosetrecipients: + senko, pitrou, ezio.melotti, cbay
2013-07-07 13:48:52senkosetmessageid: <>
2013-07-07 13:48:52senkolinkissue9177 messages
2013-07-07 13:48:52senkocreate