Disable remote async error notifications in HttpServer
@@ -200,6 +200,9 @@ public class HttpServer
baseHttpConfiguration.setRequestHeaderSize(toIntExact(config.getMaxRequestHeaderSize().toBytes()));
}
+ // disable async error notifications to work around https://github.com/jersey/jersey/issues/3691
+ baseHttpConfiguration.setNotifyRemoteAsyncErrors(false);
+
// set up HTTP connector
ServerConnector httpConnector;
if (config.isHttpEnabled()) {
