Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 77521 invoked from network); 24 Nov 2010 18:55:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Nov 2010 18:55:15 -0000 Received: (qmail 24026 invoked by uid 500); 24 Nov 2010 18:55:46 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 23985 invoked by uid 500); 24 Nov 2010 18:55:45 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 23977 invoked by uid 99); 24 Nov 2010 18:55:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Nov 2010 18:55:45 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of roman.kennke@jpmchase.com designates 159.53.78.134 as permitted sender) Received: from [159.53.78.134] (HELO sz1.jpmchase.com) (159.53.78.134) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Nov 2010 18:55:37 +0000 Received: from si3.svr.bankone.net (si3.svr.bankone.net [155.180.56.115]) by sz1.jpmchase.com (Switch-3.3.3mp/Switch-3.3.3mp) with ESMTP id oAOItG1T023437 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Wed, 24 Nov 2010 13:55:16 -0500 X-DKIM: Sendmail DKIM Filter v2.5.6 sz1.jpmchase.com oAOItG1T023437 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=jpmchase.com; s=smtpout; t=1290624916; bh=oeqeO9V6DtpYJn46rxDIUlkuPtX+wPJjdAu2fQE +lw0=; h=From:To:Date:Subject:Message-ID:Content-Transfer-Encoding: MIME-Version:Content-Type; b=EvwM5dmvG5YjOA0m9U11qxgVudG+x0PJbzqAW EuDPeZjyJdunnNqSF3+4LImRkkmGAHfeP+Hbf2sAw1cA354xppy7khy4YSKlA7qMN5K i11WkVe5+fil8RkiUnyC2xEBocFaX1t0nAFW4l0Qjuk/mgOBQd1hF+cHWNQMtdfnW1Q = Received: from svr.bankone.net ([172.18.0.50]) by si3.svr.bankone.net (Switch-3.4.3/Switch-3.4.3) with ESMTP id oAOItF9w021647 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Wed, 24 Nov 2010 13:55:15 -0500 Received: from ([169.70.190.240]) by imj3.svr.bankone.net with ESMTP id 8XLTFN1.14496828; Wed, 24 Nov 2010 13:55:12 -0500 Received: from EMBATYP102B.exchad.jpmchase.net (169.31.33.44) by HUBCR102.exchad.jpmchase.net (169.70.190.240) with Microsoft SMTP Server (TLS) id 8.2.247.2; Wed, 24 Nov 2010 13:55:12 -0500 Received: from EMBACMS102.exchad.jpmchase.net ([169.254.1.37]) by EMBATYP102B.exchad.jpmchase.net ([fe80::41f9:fba6:ceb1:3322%10]) with mapi; Wed, 24 Nov 2010 19:55:33 +0100 From: Roman Kennke To: "httpclient-users@hc.apache.org" Date: Wed, 24 Nov 2010 19:55:07 +0100 Subject: Close/interrupt HTTP connections Thread-Topic: Close/interrupt HTTP connections Thread-Index: AcuMCRv+YJRBTsUTS4y5S4t4gPVPaA== Message-ID: <83F7A3288A69094192A850818614CEEF7A3443FF4D@EMBACMS102.exchad.jpmchase.net> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-GB Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Virus-Checked: Checked by ClamAV on apache.org Hello,=0D=0A=0D=0AI need to be able to close/interrupt an active connection= =2E The only ways to achieve this, as far as I understand it, is to:=0D=0A-= Close the socket from a 2nd thread=2E This would throw a SocketConnection = on the blocked thread=2E In order to implement this, I would need to get a = reference to the actual socket=2E Is that possible?=0D=0A- Interrupt the bl= ocked thread=2E This is only possible when using NIO SocketChannels=2E Is t= here a way to use HttpClient with NIO SocketChannel? I know that HttpCore s= upports this, but then I don't easily get cookie and proxy support=2E Is th= ere a way to hook this up into HttpClient?=0D=0A=0D=0AThanks and kind regar= ds, Roman=0D=0AThis communication is for informational purposes only=2E It = is not=0Aintended as an offer or solicitation for the purchase or sale of= =0Aany financial instrument or as an official confirmation of any=0Atransac= tion=2E All market prices, data and other information are not=0Awarranted a= s to completeness or accuracy and are subject to change=0Awithout notice=2E= Any comments or statements made herein do not=0Anecessarily reflect those = of JPMorgan Chase & Co=2E, its subsidiaries=0Aand affiliates=2E=0D=0A=0D=0A= This transmission may contain information that is privileged,=0Aconfidentia= l, legally privileged, and/or exempt from disclosure=0Aunder applicable law= =2E If you are not the intended recipient, you=0Aare hereby notified that a= ny disclosure, copying, distribution, or=0Ause of the information contained= herein (including any reliance=0Athereon) is STRICTLY PROHIBITED=2E Althou= gh this transmission and any=0Aattachments are believed to be free of any v= irus or other defect=0Athat might affect any computer system into which it = is received and=0Aopened, it is the responsibility of the recipient to ensu= re that it=0Ais virus free and no responsibility is accepted by JPMorgan Ch= ase &=0ACo=2E, its subsidiaries and affiliates, as applicable, for any loss= =0Aor damage arising in any way from its use=2E If you received this=0Atran= smission in error, please immediately contact the sender and=0Adestroy the = material in its entirety, whether in electronic or hard=0Acopy format=2E Th= ank you=2E=0D=0A=0D=0APlease refer to http://www=2Ejpmorgan=2Ecom/pages/dis= closures for=0Adisclosures relating to European legal entities=2E --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org