Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 54441 invoked from network); 14 Jan 2008 19:00:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jan 2008 19:00:40 -0000 Received: (qmail 11264 invoked by uid 500); 14 Jan 2008 19:00:29 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 10732 invoked by uid 500); 14 Jan 2008 19:00:28 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 10721 invoked by uid 99); 14 Jan 2008 19:00:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jan 2008 11:00:28 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rickmcg@gmail.com designates 209.85.198.189 as permitted sender) Received: from [209.85.198.189] (HELO rv-out-0910.google.com) (209.85.198.189) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jan 2008 19:00:02 +0000 Received: by rv-out-0910.google.com with SMTP id b22so1804799rvf.55 for ; Mon, 14 Jan 2008 11:00:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; bh=q/v6SzPyCOAAhVdSdLlcDKSTFWYnzwBlPzM91cgJbR0=; b=j+jdH3ewHmZMUwKbYBz1m/b0eZxKABLs3KH4ecjSb1PQnefe6WXFvru84qDGxZcAaf3X/LHG/gV/Qzwp0lU4kl90pquz6s+/w2T1E+JEP5gT+1007MmeSN9ilERx0B3S87EEHMtSO9kDN/lj8cSimqc3lPnA4N2i7uFg6NVo1/k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=bT3CXDmTmlyInbArosywhu8kd/TJ2hBavUkrglX/IV/jF5e6+56VKN5m8VDE03i3y4t92Z000+/0I/HUAkvA2rg4P/bLSg8XJDlMLgFYGnQKMVRFcpAheFK6VEvAQW6uasQJdZTz4t+m0lyAyVCldKMHS20u6m3ehjtShejLWjI= Received: by 10.141.154.5 with SMTP id g5mr4005261rvo.290.1200337207820; Mon, 14 Jan 2008 11:00:07 -0800 (PST) Received: from ?192.168.1.100? ( [68.191.49.248]) by mx.google.com with ESMTPS id a68sm8807723rnc.18.2008.01.14.11.00.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 14 Jan 2008 11:00:06 -0800 (PST) Message-ID: <478BB139.3060000@gmail.com> Date: Mon, 14 Jan 2008 14:00:09 -0500 From: Rick McGuire Reply-To: rickmcg@gmail.com User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Geronimo Dev Subject: Is there a problem with AsyncHttpClient connection reuse? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I haven't convinced myself that this is a problem yet, but it's worth asking the question. The AsyncHttpClient has support for connection reuse when making repeated connections to sites. Since these connnections persist between instantiations of AsyncHttpClient instances, there's a single static cache of the reusable connections that is maintained. Selection from the session cache is made using the host/port combination only, which means it's possible that a connection that is reused by a client will get processed using the thread pool configuration of the original connection client and not the current requesting client. I suspect this is not an issue that can be that can be easily detected or protected against, so the "fix" might just be a word of caution added to the documentation on enabling connection reuse. rick