Skip to content

Commit

Permalink
Log the exact timeout message for SO_TIMEOUT.
Browse files Browse the repository at this point in the history
At the moment there's no way to know if it's a connect or a read timeout.
  • Loading branch information
jarib committed Jan 8, 2014
1 parent 5843d4f commit f46ad2a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public void process() {
log.log(Level.WARNING, "The client is gone for session " + session + ", terminating");
registry.terminate(session, SessionTerminationReason.CLIENT_GONE);
} catch (SocketTimeoutException e){
log.log(Level.SEVERE, "Socket timed out for session " + session + ", " + e.getMessage());
registry.terminate(session, SessionTerminationReason.SO_TIMEOUT);
} catch (Throwable t) {
log.log(Level.SEVERE, "cannot forward the request " + t.getMessage(), t);
Expand Down

0 comments on commit f46ad2a

Please sign in to comment.