Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Feb 2, 2023
1 parent 3aa1f32 commit 2b19203
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/src/main/java/jenkins/agents/WebSocketAgents.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import hudson.remoting.AbstractByteBufferCommandTransport;
import hudson.remoting.Capability;
import hudson.remoting.ChannelBuilder;
import hudson.remoting.ChunkHeader;
import hudson.remoting.Engine;
import java.io.IOException;
import java.nio.ByteBuffer;
Expand Down Expand Up @@ -173,7 +174,7 @@ class Transport extends AbstractByteBufferCommandTransport {
@Override
protected void write(ByteBuffer headerAndData) throws IOException {
// As in Engine.runWebSocket:
LOGGER.finest(() -> "sending message of length " + (headerAndData.remaining() - 2));
LOGGER.finest(() -> "sending message of length " + (headerAndData.remaining() - ChunkHeader.SIZE));
try {
sendBinary(headerAndData).get(5, TimeUnit.MINUTES);
} catch (Exception x) {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ THE SOFTWARE.

<!-- Bundled Remoting version -->
<!-- TODO https://github.com/jenkinsci/remoting/pull/621 -->
<remoting.version>3099.v6f431148cd72</remoting.version>
<remoting.version>3106.v4e88a_d540236</remoting.version>
<!-- Minimum Remoting version, which is tested for API compatibility -->
<remoting.minimum.supported.version>4.7</remoting.minimum.supported.version>

Expand Down

0 comments on commit 2b19203

Please sign in to comment.