Skip to content

Commit cccb26c

Browse files
authored
Merge branch 'master' into SocketChannelStream
2 parents efdf44a + db88ad8 commit cccb26c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/java/org/jenkinsci/remoting/engine/JnlpProtocol4Handler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ public Future<Channel> connect(@NonNull Socket socket, @NonNull Map<String, Stri
193193
private NetworkLayer createNetworkLayer(Socket socket) throws IOException {
194194
NetworkLayer networkLayer;
195195
SocketChannel socketChannel = isPreferNio() ? socket.getChannel() : null;
196+
LOGGER.fine(() -> "prefer NIO? " + isPreferNio() + " actually using NIO? " + (socketChannel != null));
196197
if (socketChannel == null) {
197198
networkLayer = new BIONetworkLayer(ioHub, Channels.newChannel(SocketChannelStream.in(socket)),
198199
Channels.newChannel(SocketChannelStream.out(socket)));

src/main/java/org/jenkinsci/remoting/protocol/impl/AckFilterLayer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ private boolean receivedPartialAck() {
173173
public void start() throws IOException {
174174
synchronized (sendLock) {
175175
timeout = stack().executeLater(() -> {
176+
LOGGER.info("Timeout waiting for ACK");
176177
IOException cause = new IOException("Timeout waiting for ACK");
177178
abort(cause);
178179
try {

0 commit comments

Comments
 (0)