main
main copied to clipboard
ssl.read exception isn't correct, breaks reading and suppress_ragged_eofs option
I noticed that there is a wrap_socket() argument: suppress_ragged_eofs
The parameter suppress_ragged_eofs specifies how the SSLSocket.read() method
should signal unexpected EOF from the other end of the connection. If
specified as True (the default), it returns a normal EOF in response to
unexpected EOF errors raised from the underlying socket; if False, it will
raise the exceptions back to the caller.
Our ssl.read() is doing a PythonSocket.MakeException which isn't going to throw the SSLError which SSLSocket.read is expecting.
Work Item Details
Original CodePlex Issue: Issue 26778 Status: Active Reason Closed: Unassigned Assigned to: Unassigned Reported on: Apr 15, 2010 at 12:38 AM Reported by: dinov Updated on: Feb 22, 2013 at 2:10 AM Updated by: jdhardy Thanks: qiuyingbo