Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 38132 invoked from network); 4 Aug 2004 18:32:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Aug 2004 18:32:58 -0000 Received: (qmail 69822 invoked by uid 500); 4 Aug 2004 18:12:24 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 69626 invoked by uid 500); 4 Aug 2004 18:12:22 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 69535 invoked by uid 99); 4 Aug 2004 18:12:20 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [82.193.192.5] (HELO pop.xnet.hr) (82.193.192.5) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 04 Aug 2004 11:12:19 -0700 Received: from MTURK (dh205-206.xnet.hr [82.193.205.206]) by pop.xnet.hr (8.12.10/8.12.10) with ESMTP id i74IEl2O010335 for ; Wed, 4 Aug 2004 20:14:47 +0200 Message-Id: <200408041814.i74IEl2O010335@pop.xnet.hr> From: "Mladen Turk" To: "'Tomcat Developers List'" Subject: RE: cvs commit: jakarta-tomcat-connectors/ajp/proxy mod_proxy.h Date: Wed, 4 Aug 2004 20:12:07 +0200 MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 thread-index: AcR6SREFyglMZ54/RVmLpozgpPL4rwAALBMg Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_02B7_01C47A5E.D5CB4700" In-Reply-To: <4110EE67.4050904@sharp.fm> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181 X-Virus-Scanned: clamd / ClamAV version 0.71, clamav-milter version 0.71 X-Virus-Status: Clean X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_02B7_01C47A5E.D5CB4700 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Seams that the minotaur is behaving badly, so I'm getting mails with couple of hours delay :) Graham Leggett wrote: > > The way that the worker connects to backend depends on > scheme handler > > itself (direct or via proxy). > > The worker connection itself will be either bound to the client > > connection > > (http) or to a backend connection (ajp), and that is also set in > > scheme handler. > > I have to figure out how to effectively skip that for ftp > scheme handler. > > Ideally all three (http, ajp and ftp) should work the same way using a > pool: The http method of only reusing the connection if the > client reuses the connection is a bit bogus, there really > should be a pool. > > Ftp is the same - there should be a pool of ftp connections. > In the case of ftp, all it needs to do is logout completely > but keep the connection open, or - for extra points teaching > the pool that some connections require login (like ftp) and > to reuse connections wheree the login details match might > also be an idea. > > Ajp supports a pool anyway. > > Making all three the same - ie all three come from a pool > would solve this problem I think. The timeout characteristics > on each protocol would be different (I would imagine that ajp > would have a long lived connection, while http connections > would be constrained by the timeout on HTTP keepalives on > backend servers) but this is details. > They are planned to be the same. I'll make a generic obtain_connection that will be pulled out from the worker (connection pool), with opened socket (if closed). The way how it gets processed further depends on how the scheme handler says. For http connector the connection will be bound to the client connection. It will be returned to the pool (and closing the socket) when their connection id's are different. I have to see how to resolve the case when client breaks the connection. any ideas? For ajp connector the connection will be returned to the pool on request end (AJP can handle different clients trough the same socket). The ftp will probably call 'login' for new connections, but I'll first finish the upper two cases, and deal with ftp later (couple of days :) MT. ------=_NextPart_000_02B7_01C47A5E.D5CB4700 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJADCCAogw ggHxoAMCAQICAwxGPTANBgkqhkiG9w0BAQQFADBiMQswCQYDVQ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