修复AsyncNioConnection
This commit is contained in:
@@ -151,10 +151,10 @@ abstract class AsyncNioConnection extends AsyncConnection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void write(byte[] headerContent, int headerOffset, int headerLength,
|
public void write(byte[] headerContent, int headerOffset, int headerLength,
|
||||||
byte[] bodyContent, int bodyOffset, int bodyLength,
|
byte[] bodyContent, int bodyOffset, int bodyLength,
|
||||||
Consumer bodyCallback, Object bodyAttachment, CompletionHandler<Integer, Void> handler) {
|
Consumer bodyCallback, Object bodyAttachment, CompletionHandler<Integer, Void> handler) {
|
||||||
|
|
||||||
if (sslEngine != null) {
|
if (sslEngine != null) {
|
||||||
super.write(headerContent, headerOffset, headerLength, bodyContent, bodyOffset, bodyLength, bodyCallback, bodyAttachment, handler);
|
super.write(headerContent, headerOffset, headerLength, bodyContent, bodyOffset, bodyLength, bodyCallback, bodyAttachment, handler);
|
||||||
return;
|
return;
|
||||||
@@ -322,6 +322,8 @@ abstract class AsyncNioConnection extends AsyncConnection {
|
|||||||
writeByteBuffers = buffers;
|
writeByteBuffers = buffers;
|
||||||
writeOffset = 0;
|
writeOffset = 0;
|
||||||
writeLength = buffers.length;
|
writeLength = buffers.length;
|
||||||
|
batchOffset = writeOffset;
|
||||||
|
batchLength = writeLength;
|
||||||
writeByteTuple1Array = null;
|
writeByteTuple1Array = null;
|
||||||
writeByteTuple1Offset = 0;
|
writeByteTuple1Offset = 0;
|
||||||
writeByteTuple1Length = 0;
|
writeByteTuple1Length = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user