hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HTTPCLIENT-822) HttpClient throws java.net.SocketException instead of org.apache.http.conn.ConnectionTimeoutException when connection timeout occurs
Date Sat, 14 Feb 2009 17:03:59 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski resolved HTTPCLIENT-822.
------------------------------------------

    Resolution: Fixed

Fixed in SVN trunk. Please verify.

Oleg

> HttpClient throws java.net.SocketException instead of org.apache.http.conn.ConnectionTimeoutException
when connection timeout occurs
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-822
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-822
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient, HttpConn
>    Affects Versions: 4.0 Beta 2
>            Reporter: Joan Balagueró
>             Fix For: 4.0 Beta 3
>
>
> When sending an http request a connection timeout occurs, the HttpClient.execute method
throws a java.net.SocketException instead of a org.apache.http.conn.ConnectionTimeoutException.
> java.net.SocketTimeoutException: connect timed out
>         at java.net.PlainSocketImpl.socketConnect(Native Method)
>         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>         at java.net.Socket.connect(Socket.java:519)
>         at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)
>         at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:129)
>         at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
>         at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
>         at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:349)
>         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
>         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
>         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message