From: markt Date: Thu, 29 Oct 2009 14:39:38 +0000 (+0000) Subject: No longer required since all connectors now use acceptors X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a023dd7749880803b45fbf9edb2e6df0679dd56d;p=tomcat7.0 No longer required since all connectors now use acceptors git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@830965 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/coyote/http11/Http11Processor.java b/java/org/apache/coyote/http11/Http11Processor.java index 48137ddda..d1ba91e6d 100644 --- a/java/org/apache/coyote/http11/Http11Processor.java +++ b/java/org/apache/coyote/http11/Http11Processor.java @@ -171,20 +171,6 @@ public class Http11Processor extends AbstractHttp11Processor implements ActionHo int soTimeout = endpoint.getSoTimeout(); - int threadRatio = -1; - // These may return zero or negative values - // Only calculate a thread ratio when both are >0 to ensure we get a - // sensible result - if (endpoint.getCurrentThreadsBusy() >0 && - endpoint.getMaxThreads() >0) { - threadRatio = (endpoint.getCurrentThreadsBusy() * 100) - / endpoint.getMaxThreads(); - } - // Disable keep-alive if we are running low on threads - if (threadRatio > 75) { - keepAliveLeft = 1; - } - try { socket.setSoTimeout(soTimeout); } catch (Throwable t) {