DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35642>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35642


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #15609|0                           |1
        is obsolete|                            |




------- Additional Comments From [EMAIL PROTECTED]  2005-07-07 18:43 -------
Created an attachment (id=15612)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=15612&action=view)
more verbous patch

Horia,

Would you please try your tests with the (patched) default retry manager if
possible? I can send you a compiled HttpClient jar if necessary.

The 20 seconds you are seeing are 4 times 5 seconds. That is once for the
original request plus three retries. So the whole issue is about the retries.
Turn off retry completely if you do not believe it.

Retry behaviour is dependent of the type of exception being thrown:
 * UnknownHostException: the hostname can not be resolved e.g. this is an error
on DNS level
 * NoRouteToHostException: if there is no computer at this IP e.g. this is an
error on IP level
 * ConnectException: if the port is not open e.g. this is an error on TCP level


When you turn on logging you will see that the HttpMethodDirector logs a
warning about this. The modified patch makes the log message a little more
verbouse so you can actually see the class of the exception thrown.

Yes HttpClient uses java.net. No, HttpClient does not use SocketChannel (nio)
nor Socket.connect with a timeout since those APIs appeared in JDK 1.4.
HttpClient is however compatible with JDK 1.3.1.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to