We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 93d1549 + b073261 commit b422fdfCopy full SHA for b422fdf
core/src/main/java/io/undertow/server/protocol/ajp/AjpReadListener.java
@@ -19,6 +19,7 @@
19
package io.undertow.server.protocol.ajp;
20
21
import io.undertow.UndertowLogger;
22
+import io.undertow.UndertowMessages;
23
import io.undertow.UndertowOptions;
24
import io.undertow.conduits.ConduitListener;
25
import io.undertow.conduits.EmptyStreamSourceConduit;
@@ -165,8 +166,7 @@ public void handleEvent(final StreamSourceChannel channel) {
165
166
}
167
if (read > maxRequestSize) {
168
UndertowLogger.REQUEST_LOGGER.requestHeaderWasTooLarge(connection.getPeerAddress(), maxRequestSize);
- safeClose(connection);
169
- return;
+ throw UndertowMessages.MESSAGES.badRequest();
170
171
} while (!state.isComplete());
172
0 commit comments