diff options
author | Yi Kong <yikong@google.com> | 2016-10-31 20:06:03 +0800 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2016-11-01 18:23:16 +0800 |
commit | ed9613470a74302b44082688a0a981562a22ec13 (patch) | |
tree | 34ac220e28783d1ce6533770832f0be7f2a4829e /annotations/generate_annotated_java_files.py | |
parent | 6facd9d7eb3b76137a5e32949bf29f91d3b9f4f9 (diff) |
Fix getTrafficClass on a closed socket leaks resources
Also introduces a small behaviour change where calling getTrafficClass
on a closed socket will throw SocketException instead of returning 0.
This restores the behaviour prior to N and is more reasonable.
Bug: 31818400
Test: libcore.java.net.OldSocketTest#test_getTrafficClass_leaky
Change-Id: I4170284eab4db739fb3698cfca0f68acaa848266
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions