Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 47096 invoked from network); 19 Sep 2000 13:37:28 -0000 Received: from w3health.com (HELO www.w3health.com) (207.126.121.24) by locus.apache.org with SMTP; 19 Sep 2000 13:37:28 -0000 Received: from arsdigita.com ([216.251.19.130]) by www.w3health.com (Post.Office MTA v3.1.2 release (PO203-101c) ID# 0-33392U500L100S10000) with ESMTP id AAA15969 for ; Tue, 19 Sep 2000 09:43:16 -0400 Sender: bschneid Message-ID: <39C76C22.1C1130E5@arsdigita.com> Date: Tue, 19 Sep 2000 09:37:38 -0400 From: bschneid@arsdigita.com X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-20 i686) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-dev@jakarta.apache.org Subject: connections not closing Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Please forgive me if this question has already been asked, but: I'm having trouble getting HTTP connections to close under Tomcat after JSP pages complete. Sometimes, the first time a page is compiled and displayed after server start-up, the entire page will be served, but Tomcat won't close the connection to the server. I've played with HttpConnectionHandler.java a little bit, and I've noticed that socket.close() is indeed being called, and the operation does not block--yet the underlying socket won't close; netstat says it's still in the "ESTABLISHED" state. This problem only happens in JSP pages that grab a database handle from an Oracle connection pool (Oracle 8.1.6, using OracleConnectionPoolDataSource and the oci8 driver. The problem doesn't surface with the thin driver. I've experienced this problem under JDK 1.2 and JDK 1.3, with Solaris 2.7, and Tomcat 3.1 release. I've also noticed that socket.shutdownOutput under JDK 1.3 seems to make the problem go away, but it's not terribly portable. Any ideas what might possibly be going on here? Any other clever ways to force sockets to close? -- Bill