Return-Path: Delivered-To: apmail-jakarta-httpcomponents-dev-archive@www.apache.org Received: (qmail 35549 invoked from network); 12 May 2007 11:05:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 May 2007 11:05:37 -0000 Received: (qmail 20755 invoked by uid 500); 12 May 2007 11:05:44 -0000 Delivered-To: apmail-jakarta-httpcomponents-dev-archive@jakarta.apache.org Received: (qmail 20554 invoked by uid 500); 12 May 2007 11:05:43 -0000 Mailing-List: contact httpcomponents-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list httpcomponents-dev@jakarta.apache.org Received: (qmail 20543 invoked by uid 99); 12 May 2007 11:05:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 May 2007 04:05:43 -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; Sat, 12 May 2007 04:05:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B5117714068 for ; Sat, 12 May 2007 04:05:15 -0700 (PDT) Message-ID: <4871202.1178967915739.JavaMail.jira@brutus> Date: Sat, 12 May 2007 04:05:15 -0700 (PDT) From: "Oleg Kalnichevski (JIRA)" To: httpcomponents-dev@jakarta.apache.org Subject: [jira] Updated: (HTTPCLIENT-599) Not possible to set socket lingering on with a socket linger time of 0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HTTPCLIENT-599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski updated HTTPCLIENT-599: ----------------------------------------- Fix Version/s: (was: 4.0 Alpha 1) 4.0 Alpha 2 > Not possible to set socket lingering on with a socket linger time of 0 > ---------------------------------------------------------------------- > > Key: HTTPCLIENT-599 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-599 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient > Affects Versions: 3.0.1 > Environment: Windows XP, Sun JVM 1.5.0_07 > Reporter: Neil Ferguson > Priority: Minor > Fix For: 4.0 Alpha 2 > > > In version 3.0.1 of the Commons HTTP Client it is not possible to set socket lingering on, but with a socket linger time of 0. This may not appear to make much sense, but (certainly with the Sun JVM) this is used to force abortive connection release (see: http://java.sun.com/j2se/1.5.0/docs/guide/net/articles/connection_release.html). > In the org.apache.commons.httpclient.HttpConnection.open() method the following code is what prevents this: > if (linger > 0) { > socket.setSoLinger(linger > 0, linger); > } > I have changed this to: > if (linger >= 0) { > socket.setSoLinger(linger >= 0, linger); > } > However this changes the meaning of the http.socket.linger parameter, so this may not be the preferred solution. Perhaps turning socket lingering on and off needs to be configured independently of the socket linger time. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org