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=35383>. 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=35383 ------- Additional Comments From [EMAIL PROTECTED] 2005-06-16 11:36 ------- Second mail reply from Oleg Oleg Kalnichevski De: Oleg Kalnichevski <[EMAIL PROTECTED]> Date: 15 juin 2005 15:06 Objet: Re: Abort HttpMethod hangs due to bad proxy config ----------------------------------------------------------- Benjamin, Java (version 1.2 and below) does not seem to offer any other means to interrupt a blocking I/O operation except for Socket#close. All HttpMethod#abort can do is calling Connection#close, which in its turn simply closes in sequence the output stream, the input stream and the socket itself http://jakarta.apache.org/commons/httpclient/3.0/xref/org/apache/commons/httpclient/HttpMethodBase.html#1007 http://jakarta.apache.org/commons/httpclient/3.0/xref/org/apache/commons/httpclient/HttpConnection.html#1141 Apparently the socket was blocked in the connect method while trying to establish the connection with the target host (which in your case was the proxy): > org.apache.commons.httpclient.ConnectTimeoutException: The host did > not accept the connection within timeout of 10000 ms > at > org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:154) > at > org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:124) So, technically speaking from the JRE perspective the socket was still closed when HttpMethod#abort was attempted, hence Socket#close appears to have made no effect on the blocked socket. I am afraid there's not really much we can do here. The only resort could possibly try would be calling Socket#shutdownInput through reflection, but I suspect it will have no effect on sockets blocked in the connect method either: http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html#shutdownInput() Oleg -- 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]
