Return-Path: Delivered-To: apmail-jakarta-httpcomponents-dev-archive@www.apache.org Received: (qmail 98975 invoked from network); 27 Dec 2006 21:01:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Dec 2006 21:01:43 -0000 Received: (qmail 8427 invoked by uid 500); 27 Dec 2006 21:01:50 -0000 Delivered-To: apmail-jakarta-httpcomponents-dev-archive@jakarta.apache.org Received: (qmail 8405 invoked by uid 500); 27 Dec 2006 21:01:50 -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 8390 invoked by uid 99); 27 Dec 2006 21:01:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Dec 2006 13:01:50 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Wed, 27 Dec 2006 13:01:42 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 62D7C71429F for ; Wed, 27 Dec 2006 13:01:22 -0800 (PST) Message-ID: <12103915.1167253282402.JavaMail.jira@brutus> Date: Wed, 27 Dec 2006 13:01:22 -0800 (PST) From: "Roland Weber (JIRA)" To: httpcomponents-dev@jakarta.apache.org Subject: [jira] Commented: (HTTPCLIENT-475) Provide support for unconnected sockets MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/HTTPCLIENT-475?page=comments#action_12461102 ] Roland Weber commented on HTTPCLIENT-475: ----------------------------------------- Hi Oleg, I had forgotten that there are test cases ;-( Will fix them before checking in. I had the method called connectSocket, then realized that all other methods in the socket factory were called createSocket. I'll change it back (tomorrow). My thoughts for abort() were with the HttpClient: interface HttpClient { void abort(HttpRequest request) } and internally, the HttpClient keeps a map from requests to allocated connections (and other resources). Should work for connection release as well, and avoids setting the connection on request and response. The response might need a link back to the client if we want to have a release method there. cheers, Roland > Provide support for unconnected sockets > --------------------------------------- > > Key: HTTPCLIENT-475 > URL: http://issues.apache.org/jira/browse/HTTPCLIENT-475 > Project: HttpComponents HttpClient > Issue Type: Improvement > Components: HttpConn > Affects Versions: Nightly Builds > Environment: Operating System: All > Platform: PC > Reporter: Benjamin Chevillon > Assigned To: Roland Weber > Priority: Minor > Fix For: 4.0 Alpha 1 > > Attachments: 2k6-12-27-socketfactory-1.txt, ConnectTest.java, ConnectTest.log, MethodAbortTest.java, MethodAbortTestWithoutProxy.log, MethodAbortTestWithProxy.log > > > Overview description: > If Proxy settings are incorrect or host does not reply, the > HttpClient.executeMethod() hangs, and HttpMethod.abort() does not stop it. Thus, > you cannot assert that the entire application will stop immediately on demand. > Expected Results: > During a HttpMethod.executeMethod(), HttpMethod.abort() should cancel > immediately the executeMethod(). > Actual Results: > If HttpMethod.executeMethod() freezes because of Proxy bad settings or not > responding hostname (in fact impossible to open the socket), the abort() method > does not do anything. > Platform: > I tested it on Windows XP and Linux Debian with HttpClient 3.0 RC2 (but if you > look further I point the problem and the source code of the nightly build is > identical). > See comments for the dialogue about the problem, and 2 Test cases. The solution > is described at the end, but it may implies a change in the API and works only > since Java 1.4. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org