hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <o.kalnichev...@dplanet.ch>
Subject Re: DO NOT REPLY [Bug 17487] - waitForResponse is using busy wait
Date Thu, 27 Feb 2003 19:34:36 GMT
Laura
CPU-bound polling is needed only under fairly unusual circumstances. I
do think that any sort of thread based solution would be an overkill. I
did my best to explain the rationale for not using threads in the bug
report

Cheers

Oleg     

On Thu, 2003-02-27 at 20:23, Laura Werner wrote:
> Oleg Kalnichevski wrote:
> 
> >Odi, are you sure you want to have an extra thread per HttpMethod? I do
> >not think so
> >
> You can do threads fairly efficiently by pooling them.  I do it in my 
> cache, since I have to allow a timeout on the whole transaction and 
> abort the transaction even in the middle of reading the response if it 
> takes too long.  (The VoiceXML spec requires this.)  But this is 
> probably overkill for httpclient.
> 
> 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