summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorAdam Vartanian <flooey@google.com>2017-07-07 12:12:50 +0100
committerAdam Vartanian <flooey@google.com>2017-07-07 12:12:50 +0100
commitc5ef172cca781c4f046167854bae3863304ea2ed (patch)
tree1fee22ebe112557c8c23bc790f0e9070fdd68003 /annotations/generate_annotated_java_files.py
parent9048236ee54e49cdf44e8802087092e01cbf045d (diff)
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
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions