This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push: new c156c3c Use 2GB as the threshold for buffer pool c156c3c is described below commit c156c3cbfc0a9a4a9a8cb3182506af03f1d5dba4 Author: remm <r...@apache.org> AuthorDate: Thu Nov 5 16:26:01 2020 +0100 Use 2GB as the threshold for buffer pool There's already a constant for it. --- java/org/apache/tomcat/util/net/SocketProperties.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/org/apache/tomcat/util/net/SocketProperties.java b/java/org/apache/tomcat/util/net/SocketProperties.java index 0d6d89a..37311d2 100644 --- a/java/org/apache/tomcat/util/net/SocketProperties.java +++ b/java/org/apache/tomcat/util/net/SocketProperties.java @@ -453,7 +453,7 @@ public class SocketProperties { long poolSize = 0; if (actualBufferPoolSize == -2) { long maxMemory = Runtime.getRuntime().maxMemory(); - if (maxMemory > 1024 * 1024 * 1024) { + if (maxMemory > Integer.MAX_VALUE) { actualBufferPoolSize = maxMemory / 32; } else { return 0; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org