mirror of
https://github.com/corda/corda.git
synced 2025-06-16 22:28:15 +00:00
Various bug fixes and optimizations
This commit is contained in:
@ -57,6 +57,7 @@ public class SocketChannel extends SelectableChannel
|
||||
if (! connected) {
|
||||
natThrowWriteError(socket);
|
||||
}
|
||||
if (b.remaining() == 0) return 0;
|
||||
int w = natWrite(socket, b.array(), b.arrayOffset() + b.position(), b.remaining());
|
||||
if (w > 0) {
|
||||
b.position(b.position() + w);
|
||||
|
Reference in New Issue
Block a user