diff options
| author | Yi Kong <yikong@google.com> | 2017-01-12 23:06:21 +0000 |
|---|---|---|
| committer | Yi Kong <yikong@google.com> | 2017-01-17 16:16:03 +0000 |
| commit | ba17b532f644b7caed6d08671d492edfee8b6f37 (patch) | |
| tree | c6b42745c29268f2078bbea6962b71e3e1cb9a88 /include/ScopedJavaUnicodeString.h | |
| parent | a2a43b6196d38a389b5593be8bbe421fe7576fe6 (diff) | |
Revert "Revert "Move PlainDatagramSocketImpl away from JNI""
Fixed a issue introduced as part of Libcore change 5e0df135, that caused
calling DatagramSocket.receive() with a reused DatagramPacket to fail.
This was due to calling system recvfrom(2) with packet's content length
instead of its buffer length.
This reverts commit fba26224db3ed354a0b42c4bee5ed4ddc4d52f9a and fixes
the above issue.
org.apache.harmony.tests.java.net.DatagramSocketTest#testReceiveTwice is
a regression test.
Test: Manual testing
Test: org.apache.harmony.tests.java.net.DatagramSocketTest#testReceiveTwice
Test: CtsLibcoreTestCases
Bug: 33957878
Change-Id: I64daaf6cf099e9af6bdee56f29da48627111ae25
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions
