Skip to content

Commit 4e88ad5

Browse files
committed
Forgotten spot where ChunkHeader.SIZE would be appropriate
1 parent d90baa5 commit 4e88ad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/hudson/remoting/Engine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ class Transport extends AbstractByteBufferCommandTransport {
649649
}
650650
@Override
651651
protected void write(ByteBuffer headerAndData) throws IOException {
652-
LOGGER.finest(() -> "sending message of length " + (headerAndData.remaining() - 2));
652+
LOGGER.finest(() -> "sending message of length " + (headerAndData.remaining() - ChunkHeader.SIZE));
653653
try {
654654
session.getAsyncRemote().sendBinary(headerAndData).get(5, TimeUnit.MINUTES);
655655
} catch (Exception x) {

0 commit comments

Comments
 (0)