Update comment in HttpWebHandlerAdapter

See gh-23780
This commit is contained in:
Rossen Stoyanchev 2019-10-23 17:31:59 +01:00
parent 33bf09d513
commit 780eef8d36
1 changed files with 3 additions and 1 deletions

View File

@ -267,7 +267,9 @@ public class HttpWebHandlerAdapter extends WebHandlerDecorator implements HttpHa
ServerHttpResponse response = exchange.getResponse();
String logPrefix = exchange.getLogPrefix();
// Request handling error (e.g. remote call), if we manage to set the status..
// Sometimes a remote call error can look like a disconnected client.
// Try to set the response first before the "isDisconnectedClient" check.
if (response.setStatusCode(HttpStatus.INTERNAL_SERVER_ERROR)) {
logger.error(logPrefix + "500 Server Error for " + formatRequest(request), ex);
return Mono.empty();