From: mturk Date: Fri, 3 Sep 2010 20:30:10 +0000 (+0000) Subject: Use shutdown instead close for hard closing the socket which is inside Socket.accept... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d072ec574e210e8f6cec39f4aae8a3da0fa34f7e;p=tomcat7.0 Use shutdown instead close for hard closing the socket which is inside Socket.accept call git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@992456 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/tomcat/util/net/AprEndpoint.java b/java/org/apache/tomcat/util/net/AprEndpoint.java index 156be82cd..7dcd07bd9 100644 --- a/java/org/apache/tomcat/util/net/AprEndpoint.java +++ b/java/org/apache/tomcat/util/net/AprEndpoint.java @@ -683,7 +683,7 @@ public class AprEndpoint extends AbstractEndpoint { // If the Acceptor is still running force // the hard socket close. if (serverSock != 0) { - Socket.close(serverSock); + Socket.shutdown(serverSock, Socket.APR_SHUTDOWN_READ); serverSock = 0; } }