Skip to content

Commit

Permalink
[FIXED JENKINS-38541] SocketTimeoutException should not be fatal for …
Browse files Browse the repository at this point in the history
…BIONetworkLayer (#111)
  • Loading branch information
stephenc authored and oleg-nenashev committed Sep 28, 2016
1 parent f0f10b0 commit e537360
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -23,6 +23,7 @@
*/
package org.jenkinsci.remoting.protocol.impl;

import java.net.SocketTimeoutException;
import java.util.logging.LogRecord;
import javax.annotation.Nonnull;
import java.io.EOFException;
Expand Down Expand Up @@ -246,6 +247,9 @@ public void run() {
onRecvClosed();
return;
}
} catch (SocketTimeoutException e) {
// perfectly normal, loop back around and check everything is still open before retrying
continue;
} catch (ClosedChannelException e) {
onRecvClosed();
return;
Expand Down

0 comments on commit e537360

Please sign in to comment.