Skip to content

Commit

Permalink
UNDERTOW-1303 Fix potential NPE on client IOException
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Mar 9, 2018
1 parent 507429c commit 352dd88
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -437,8 +437,10 @@ private void handleError(Throwable exception) {
}
private void handleError(IOException exception) {
UndertowLogger.REQUEST_IO_LOGGER.ioException(exception);
safeClose(connection);
currentRequest.setFailed(exception);
currentRequest = null;
pendingResponse = null;
safeClose(connection);
}

public StreamConnection performUpgrade() throws IOException {
Expand Down

0 comments on commit 352dd88

Please sign in to comment.