hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Sutton <adr...@intencha.com>
Subject Re: Still problems with HttpRecoverableException and HTTPS
Date Tue, 15 Apr 2003 01:22:25 GMT
Okay, in that case I'm putting my money on finding something like the 
following in the server code:

if (timeoutShouldHappenNow) {

In other words, it closes the output stream but not the input stream or 
something similar.  Possibly a bug in the JVM that causes 
socket.close() to only close the output stream or something as well.

Perhaps it would be reasonable to retry if no response at all is 
received from the server?  That would avoid the wrong content length 
problem and be reasonably safe.  It should still be configurable 
obviously.  Not that I particularly like settling for that.


Adrian Sutton.

On Tuesday, April 15, 2003, at 11:13  AM, Michael Becke wrote:
> Different servers have different timeouts, so the wait number needs to 
> be varied a bit.  Some servers seem to cause an exception when writing 
> the second request, where others do not until the read.  In particular 
> I've noticed the following:
> 	Apache 2.0.40, Apache Coyote 1.0 (Tomcat) and IIS 6.0 all cause 
> errors on the write and are therefore retried.
> 	IBM HTTP Server 1.3.26 (Apache 1.3.26) and SunONE 6.0 (NCSA) both 
> cause errors on the read and therefore are not retried.
> I played around with flushing the output stream and 
> inputStream.available().  Neither seem to do the trick.  I also tried 
> adding a HEAD test method when reusing a connection and, though not 
> optimal, it worked.  I will post code for this in case anyone is 
> interested.
> And so the saga continues...
> Mike

View raw message