Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 4097 invoked from network); 22 Oct 2003 18:47:20 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 22 Oct 2003 18:47:20 -0000 Received: (qmail 97804 invoked by uid 500); 22 Oct 2003 18:46:42 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 97767 invoked by uid 500); 22 Oct 2003 18:46:42 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 97725 invoked from network); 22 Oct 2003 18:46:42 -0000 Received: from unknown (HELO ozone.more.net) (198.209.253.70) by daedalus.apache.org with SMTP; 22 Oct 2003 18:46:42 -0000 Received: from mail.more.net (b5fan.spg.more.net [207.160.133.142]) by ozone.more.net (Postfix) with ESMTP id 99B2D23027 for ; Wed, 22 Oct 2003 13:46:46 -0500 (CDT) Message-ID: <3F96D097.4030307@mail.more.net> Date: Wed, 22 Oct 2003 13:46:47 -0500 From: Glenn Nielsen Reply-To: glenn@mail.more.net Organization: MOREnet User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.0.1) Gecko/20020920 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net PoolTcpEndpoint.java References: <20031022134628.96688.qmail@minotaur.apache.org> <3F968D15.7070800@apache.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Remy Maucherat wrote: > glenn@apache.org wrote: > >> glenn 2003/10/22 06:46:28 >> >> Modified: util/java/org/apache/tomcat/util/net PoolTcpEndpoint.java >> Log: >> SocketExceptions can occur in a networked app. >> No need to log a stack trace, just log the remote host >> name/ip and the exception message. Then there is less >> cruft in the logs. > > > I'd like more details :) > With HTTP/1.1, an exception can only occur while setting the socket > options. I don't consider that very normal, though. What was your > motivation for the change ? Did you see many logs coming out of here ? > Yes, that is where I saw the Exception: [ERROR] PoolTcpEndpoint - -Unexpected error java.net.SocketException: Socket close d at java.net.PlainSocketImpl.socketSetOption(Native Method) at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:187) at java.net.Socket.setTcpNoDelay(Socket.java:372) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.setTcpNoDelay([DashoPro-V1.2-120198]) at org.apache.tomcat.util.net.PoolTcpEndpoint.setSocketOptions(PoolTcpEndpoint.java:495) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:587) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666) at java.lang.Thread.run(Thread.java:479) This was due to simple external system monitoring that would periodically connect to the Coyote port to verify that the port was accepting connections, then immediately disconnect. So the stack trace would end up in the logs each time the system monitoring did its checks. In this case the Coyote connector implemented SSL so there was no easy way to get the system monitoring software to do an actual HTTPS negotiation with it. Regards, Glenn ---------------------------------------------------------------------- Glenn Nielsen glenn@more.net | /* Spelin donut madder | MOREnet System Programming | * if iz ina coment. | Missouri Research and Education Network | */ | ---------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org