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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25370

exception during writeRequest leaves the connection un-released





------- Additional Comments From [EMAIL PROTECTED]  2003-12-10 16:56 -------
The unfortunate reality with IOExceptions is that they can occur when you least
expect them. I ran into this while doing rigorous exception testing (see the
test code below).

The statement "writeRequest method are supposed to be treated as
recoverable" appears to be false: the method signature has IOException in it. It
is not possible to remove that either, because an IOException can truly occur
during the write. Of course, it is possible to change the method signature to
"throws HttpRecoverableException" and catch other exceptions and wrap them as
HttpRecoverableException. However, from the HTTP spec, a generic writeRequest is
*not* simply retriable (it is not considered idempotent for POST, PUT, etc; see
section 9.1 of the RFC). I would strongly discourage wrapping the IOException
inside writeRequest.

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

Reply via email to