From f768e2ed6875616c36d997d0a98981c0027d624f Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Fri, 5 Feb 2021 14:50:14 +0100 Subject: [PATCH] Fix #5937 (#5949) Remove size limit on async static content. --- .../src/main/java/org/eclipse/jetty/server/ResourceService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/ResourceService.java b/jetty-server/src/main/java/org/eclipse/jetty/server/ResourceService.java index c7fd21f4e80d..c3866cd5f013 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/ResourceService.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/ResourceService.java @@ -691,7 +691,7 @@ else if (written) putHeaders(response, content, Response.USE_KNOWN_CONTENT_LENGTH); // write the content asynchronously if supported - if (request.isAsyncSupported() && content.getContentLengthValue() > response.getBufferSize()) + if (request.isAsyncSupported()) { final AsyncContext context = request.startAsync(); context.setTimeout(0);