You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Kalnichevski, Oleg" <ol...@bearingpoint.com> on 2003/01/16 17:21:11 UTC
[PATCH] Connection pooling logic does not take protocol into account (attempt 2)
I discovered an important omission: I did not mention Simon among the authors. My apologies
Mike, I'd appreciate if commented on the changes I have made
Oleg
-----Original Message-----
From: Simon Roberts [mailto:simon.roberts@fifthweb.net]
Sent: Thursday, January 16, 2003 6:51 AM
To: Commons HttpClient Project
Subject: Re: protocol support
Well, here's a patch that changes the key for the connection pool from
host + ":" + port
to
host + ":" + port + "-" + protocol.getSocketFactory().toString()
It's a little ugly, but perhaps better than making all Implementors of
Protocol figure out a sensible value themselves.
Let me know if I missed something, Simon
----- Original Message -----
From: "Kalnichevski, Oleg" <ol...@bearingpoint.com>
To: "Commons HttpClient Project" <co...@jakarta.apache.org>
Cc: <si...@fifthweb.net>
Sent: Tuesday, January 14, 2003 5:15 AM
Subject: RE: protocol support
Simon, the patch will be welcome, of course. Just let us know if have time
and interest for contributing it. We should also quickly check with Mike,
though, to make sure your efforts would not overlap with his
Cheers
Oleg
-----Original Message-----
From: Simon Roberts [mailto:simon.roberts@fifthweb.net]
Sent: Friday, January 10, 2003 12:50 PM
To: Commons HttpClient Project
Subject: Re: protocol support
Not that it actually works for in the current codebase (for
MultiThreadedHttpConnectionManager, for multiple connections to the same
host, anyway), as I noted. I can submit a patch that adds the the Protocol
to the key used in the connection pool, if y'like.
----- Original Message -----
From: "Ortwin Glück" <or...@nose.ch>
To: "Commons HttpClient Project" <co...@jakarta.apache.org>
Sent: Friday, January 10, 2003 9:30 PM
Subject: Re: protocol support
> You can register your own protocols via
> Protocol.registerProtocol(String, Protocol). However HttpClient is only
> meant to handle http and https. FTP, Gopher and others are not handled
> by HttpClient. The main use of registerProtocol method is to register
> custom SocketFactories. So you would mostly register protocols like
> 'https1', 'https2' for different client certificates with SSL.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.441 / Virus Database: 247 - Release Date: 9/01/2003
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>