Skip to content

Commit f46ad2a

Browse files
committed
Log the exact timeout message for SO_TIMEOUT.
At the moment there's no way to know if it's a connect or a read timeout.
1 parent 5843d4f commit f46ad2a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

java/server/src/org/openqa/grid/web/servlet/handler/RequestHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ public void process() {
131131
log.log(Level.WARNING, "The client is gone for session " + session + ", terminating");
132132
registry.terminate(session, SessionTerminationReason.CLIENT_GONE);
133133
} catch (SocketTimeoutException e){
134+
log.log(Level.SEVERE, "Socket timed out for session " + session + ", " + e.getMessage());
134135
registry.terminate(session, SessionTerminationReason.SO_TIMEOUT);
135136
} catch (Throwable t) {
136137
log.log(Level.SEVERE, "cannot forward the request " + t.getMessage(), t);

0 commit comments

Comments
 (0)