Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 78299 invoked from network); 15 Jun 2007 15:49:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Jun 2007 15:49:47 -0000 Received: (qmail 46285 invoked by uid 500); 15 Jun 2007 15:49:50 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 46259 invoked by uid 500); 15 Jun 2007 15:49:50 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 46250 invoked by uid 99); 15 Jun 2007 15:49:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jun 2007 08:49:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jun 2007 08:49:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 27199714159 for ; Fri, 15 Jun 2007 08:49:26 -0700 (PDT) Message-ID: <32686906.1181922566157.JavaMail.jira@brutus> Date: Fri, 15 Jun 2007 08:49:26 -0700 (PDT) From: "Ugo Cei (JIRA)" To: abdera-dev@incubator.apache.org Subject: [jira] Created: (ABDERA-49) AutoReleasingInputStream leaks connections in case of error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org AutoReleasingInputStream leaks connections in case of error ----------------------------------------------------------- Key: ABDERA-49 URL: https://issues.apache.org/jira/browse/ABDERA-49 Project: Abdera Issue Type: Bug Affects Versions: 0.2.2 Reporter: Ugo Cei Assignee: Ugo Cei Priority: Critical Fix For: 0.3.0 If an exception occurs when reading from an AutoReleasingInputStream, the connection won't be closed, leading to a leak. The implementation of the method should be public int read() throws IOException { try { int r = super.read(); if (r == -1) method.releaseConnection(); return r; } catch (IOException e) { method.releaseConnection(); throw e; } } Same for read(byte[] b, int off, int len). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.