Commit c5ef172c authored by Adam Vartanian's avatar Adam Vartanian
Browse files

Use IOException rather than SocketException.

There are various other IOExceptions that can be thrown by either
toRead.getInputStream() or toRead().read(), but any of them indicate
that the concurrent closing of the socket was properly detected.  Some
examples are SSLHandshakeException, if the socket was part way through
the handshake when it was closed, or a bare IOException, if the
socket is closed during getInputStream() and we're reading the
underlying socket rather than the SSLSocket.

Bug: 62640872
Test: cts -m CtsLibcoreTestCases -t libcore.javax.net.ssl.SSLSocketTest#test_SLLSocket_interrupt
Change-Id: I12cb28931fcf9080c84063fc918af88548b6af1a
parent 9048236e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment