[ 
https://issues.apache.org/jira/browse/TIKA-4991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18130667#comment-18130667
 ] 

ASF GitHub Bot commented on TIKA-4991:
--------------------------------------

Copilot commented on code in PR #3402:
URL: https://github.com/apache/tika/pull/3402#discussion_r4355627130


##########
tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/MaxRequestSizeFilter.java:
##########
@@ -19,47 +19,84 @@
 import java.io.FilterInputStream;
 import java.io.IOException;
 import java.io.InputStream;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.TimeoutException;
 
 import jakarta.ws.rs.container.ContainerRequestContext;
 import jakarta.ws.rs.container.ContainerRequestFilter;
+import jakarta.ws.rs.core.HttpHeaders;
 import jakarta.ws.rs.core.MediaType;
 import jakarta.ws.rs.core.Response;
 import jakarta.ws.rs.ext.ExceptionMapper;
 import jakarta.ws.rs.ext.Provider;
+import org.apache.cxf.jaxrs.utils.JAXRSUtils;
+import org.apache.cxf.message.Message;
 
 /**
- * Rejects request bodies larger than {@code maxRequestSizeBytes}.
+ * Rejects request bodies larger than {@code maxRequestSizeBytes} (413), still 
arriving
+ * after {@code maxRequestReadMillis} (408), or that would take the bytes all 
requests hold
+ * past {@code maxInFlightRequestBytes} (429, see {@link RequestBodyBudget}).
  * <p>
  * A declared Content-Length over the limit is refused before the body is 
read. Requests
  * without a usable Content-Length 

> Improve limits in tika-server
> -----------------------------
>
>                 Key: TIKA-4991
>                 URL: https://issues.apache.org/jira/browse/TIKA-4991
>             Project: Tika
>          Issue Type: Task
>            Reporter: Tim Allison
>            Priority: Minor
>




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to