hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <be...@u.washington.edu>
Subject Re: [PATCH] Why is the HttpConnectionManager a field in HttpState?
Date Fri, 09 May 2003 00:12:38 GMT
Good call.  0 does the trick.

Mike

On Thursday, May 8, 2003, at 07:23 PM, Laura Werner wrote:

> Michael Becke wrote:
>
>> Initially I was leaning towards the first solution, but I have just 
>> discovered something that may make it not generally feasible.  I 
>> thought Socket night accept a -1 for local port, but alas no.  If we 
>> were to specify a local host/port, only one connection could be open 
>> per host config.
>
> I think Socket accepts a 0 for the local port, and it will pick any 
> available client port.
>
>> As Oleg said, it might be better to make a more obscure solution.  
>> Any suggestions on how to fix the case for tunneled HTTPS >> connections?
>
> I think I prefer solution #2: put the local bind address into the 
> HostConnection and use it in HttpConnection.open.  If using "0" as the 
> local port works, this will give us the functionality with minimal API 
> pollution.  I'm going to try this out right now.  I'll post when I 
> find out if it works.
>
> -- Laura
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: 
> commons-httpclient-dev-help@jakarta.apache.org
>


Mime
View raw message