Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A7A3C49F for ; Tue, 22 May 2012 10:57:00 +0000 (UTC) Received: (qmail 64965 invoked by uid 500); 22 May 2012 10:56:56 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 64744 invoked by uid 500); 22 May 2012 10:56:55 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 64697 invoked by uid 99); 22 May 2012 10:56:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 May 2012 10:56:54 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kjkoster@gmail.com designates 209.85.212.177 as permitted sender) Received: from [209.85.212.177] (HELO mail-wi0-f177.google.com) (209.85.212.177) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 May 2012 10:56:47 +0000 Received: by wibhm14 with SMTP id hm14so2697477wib.0 for ; Tue, 22 May 2012 03:56:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=7nqUNvuJVnbp0XP58ej7ZmF1yRpS+Vx3Bxpdo8qDQ60=; b=njLSXReg807+etyd/+y7tlmhJZCFl0Iz/hzvyJlTqj7B8eZG52nsTsVhmNkQkfzrou DWX8PZaad/IjecZuN/IJ17NbTSenqKvkUfZzPJyPpn56eBchOLQAOrXM7l8UYA9pzBIE /AJoDM7ej271RPdahYK/OfbXKpr/nfHnzvu9qr9hQ3qcNN50MxUFAQs6GiZUJUIHby4g mRISkLXvGK1eyOpaBYmboNhhBSLMYdTOzDNg/cUilPfRPELZqS7EwrJKD0eUX9m54X/A AHfUvQf93yspp+Y2RMwVC6GCWPqGhE5h6CtxpUsRTBBSsh9rPz5KgJTlpj3X3lWwgLOa PBQg== Received: by 10.216.132.150 with SMTP id o22mr15088596wei.109.1337684187652; Tue, 22 May 2012 03:56:27 -0700 (PDT) Received: from [192.168.20.227] ([130.117.252.5]) by mx.google.com with ESMTPS id fo7sm32282135wib.9.2012.05.22.03.56.26 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 May 2012 03:56:26 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1278) Subject: Re: connection reset errors From: Kees Jan Koster In-Reply-To: Date: Tue, 22 May 2012 12:56:25 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <74268996-989A-45DD-8AD9-D2680F3528A0@gmail.com> References: <66593FBF-28EE-4714-B635-665E8C8108DC@gmail.com> <93846927-7497-42BD-AFB6-944364743B1D@gmail.com> To: "Tomcat Users List" X-Mailer: Apple Mail (2.1278) Dear Jose, >> Yes I am. In finally{} block. Here is the client code: >=20 > Calling the disconnect() method of HttpURLConnection may close the > underlying socket > if a persistent connection is otherwise idle at that time > Try don't call it, test it and tell us :-) >=20 > http://docs.oracle.com/javase/1.5.0/docs/guide/net/http-keepalive.html Ugh. I never realized the socket API was this messy. At any rate, I call connection.setRequestProperty("Connection", = "close"); to indicate that I do not want to make use of persistent = connections. You can see that in my client code. If the underlying socket were closed I would also occasionally see other = methods than 'read' get an error. The stack trace I posted is the only = one I get, though. -- Kees Jan http://java-monitor.com/ kjkoster@kjkoster.org +31651838192 Change is good. Granted, it is good in retrospect, but change is good. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org