{"action":"created","issue":{"url":"https://api.github.com/repos/loopj/android-async-http/issues/361","labels_url":"https://api.github.com/repos/loopj/android-async-http/issues/361/labels{/name}","comments_url":"https://api.github.com/repos/loopj/android-async-http/issues/361/comments","events_url":"https://api.github.com/repos/loopj/android-async-http/issues/361/events","html_url":"https://github.com/loopj/android-async-http/issues/361","id":21549543,"number":361,"title":"ConnectTimeoutException broken in failure respond","user":{"login":"alex-kor","id":5768790,"avatar_url":"https://avatars.githubusercontent.com/u/5768790?v=3","gravatar_id":"","url":"https://api.github.com/users/alex-kor","html_url":"https://github.com/alex-kor","followers_url":"https://api.github.com/users/alex-kor/followers","following_url":"https://api.github.com/users/alex-kor/following{/other_user}","gists_url":"https://api.github.com/users/alex-kor/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-kor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-kor/subscriptions","organizations_url":"https://api.github.com/users/alex-kor/orgs","repos_url":"https://api.github.com/users/alex-kor/repos","events_url":"https://api.github.com/users/alex-kor/events{/privacy}","received_events_url":"https://api.github.com/users/alex-kor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"smarek","id":384824,"avatar_url":"https://avatars.githubusercontent.com/u/384824?v=3","gravatar_id":"","url":"https://api.github.com/users/smarek","html_url":"https://github.com/smarek","followers_url":"https://api.github.com/users/smarek/followers","following_url":"https://api.github.com/users/smarek/following{/other_user}","gists_url":"https://api.github.com/users/smarek/gists{/gist_id}","starred_url":"https://api.github.com/users/smarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarek/subscriptions","organizations_url":"https://api.github.com/users/smarek/orgs","repos_url":"https://api.github.com/users/smarek/repos","events_url":"https://api.github.com/users/smarek/events{/privacy}","received_events_url":"https://api.github.com/users/smarek/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/loopj/android-async-http/milestones/6","html_url":"https://github.com/loopj/android-async-http/milestones/1.4.7","labels_url":"https://api.github.com/repos/loopj/android-async-http/milestones/6/labels","id":778119,"number":6,"title":"1.4.7","description":"","creator":{"login":"smarek","id":384824,"avatar_url":"https://avatars.githubusercontent.com/u/384824?v=3","gravatar_id":"","url":"https://api.github.com/users/smarek","html_url":"https://github.com/smarek","followers_url":"https://api.github.com/users/smarek/followers","following_url":"https://api.github.com/users/smarek/following{/other_user}","gists_url":"https://api.github.com/users/smarek/gists{/gist_id}","starred_url":"https://api.github.com/users/smarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarek/subscriptions","organizations_url":"https://api.github.com/users/smarek/orgs","repos_url":"https://api.github.com/users/smarek/repos","events_url":"https://api.github.com/users/smarek/events{/privacy}","received_events_url":"https://api.github.com/users/smarek/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":147,"state":"closed","created_at":"2014-09-04T08:27:44Z","updated_at":"2015-05-09T16:52:33Z","due_on":"2015-05-08T22:00:00Z","closed_at":"2015-05-09T16:52:33Z"},"comments":15,"created_at":"2013-10-24T20:30:46Z","updated_at":"2015-10-26T20:42:48Z","closed_at":"2014-09-08T10:45:53Z","body":"I have an issue with ConnectionTimeoutExeption in a latest release. It was fixed before and now is broken again.\r\n\r\nI did set a timeout to very short to be able to test connection timeout and I don't have a respond in my onFailure method.\r\n```\r\n@Override\r\npublic void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\r\n          Log.e(\"HTTP CLIENT\",\"Error code: \"+statusCode+\" content: \"+new String(responseBody));\r\n\t\t\t\t\r\n\tif ( error.getCause() instanceof ConnectTimeoutException )\r\n\t{\r\n\t        Log.e(\"HTTP CLIENT\",\"Connection timeout !\");\r\n\t}\r\n\tsuper.onFailure(statusCode, headers, responseBody, error);\r\n}\r\n```\r\nCould you please check if something wrong.\r\n\r\nThis is an exception what I've got:\r\n```\r\norg.apache.http.conn.ConnectTimeoutException: Connect to /50.16.223.98:80 timed out\r\n10-24 13:48:46.693: W/System.err(5220): \tat org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:121)\r\n10-24 13:48:46.693: W/System.err(5220): \tat org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:144)\r\n10-24 13:48:46.696: W/System.err(5220): \tat org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)\r\n10-24 13:48:46.700: W/System.err(5220): \tat org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)\r\n10-24 13:48:46.704: W/System.err(5220): \tat org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)\r\n10-24 13:48:46.716: W/System.err(5220): \tat org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)\r\n10-24 13:48:46.716: W/System.err(5220): \tat org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)\r\n10-24 13:48:46.720: W/System.err(5220): \tat com.loopj.android.http.AsyncHttpRequest.makeRequest(AsyncHttpRequest.java:72)\r\n10-24 13:48:46.728: W/System.err(5220): \tat com.loopj.android.http.AsyncHttpRequest.makeRequestWithRetries(AsyncHttpRequest.java:90)\r\n10-24 13:48:46.732: W/System.err(5220): \tat com.loopj.android.http.AsyncHttpRequest.run(AsyncHttpRequest.java:52)\r\n10-24 13:48:46.732: W/System.err(5220): \tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)\r\n10-24 13:48:46.736: W/System.err(5220): \tat java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)\r\n10-24 13:48:46.736: W/System.err(5220): \tat java.util.concurrent.FutureTask.run(FutureTask.java:137)\r\n10-24 13:48:46.736: W/System.err(5220): \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)\r\n10-24 13:48:46.736: W/System.err(5220): \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)\r\n10-24 13:48:46.736: W/System.err(5220): \tat java.lang.Thread.run(Thread.java:856)\r\n```"},"comment":{"url":"https://api.github.com/repos/loopj/android-async-http/issues/comments/151278478","html_url":"https://github.com/loopj/android-async-http/issues/361#issuecomment-151278478","issue_url":"https://api.github.com/repos/loopj/android-async-http/issues/361","id":151278478,"user":{"login":"smarek","id":384824,"avatar_url":"https://avatars.githubusercontent.com/u/384824?v=3","gravatar_id":"","url":"https://api.github.com/users/smarek","html_url":"https://github.com/smarek","followers_url":"https://api.github.com/users/smarek/followers","following_url":"https://api.github.com/users/smarek/following{/other_user}","gists_url":"https://api.github.com/users/smarek/gists{/gist_id}","starred_url":"https://api.github.com/users/smarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarek/subscriptions","organizations_url":"https://api.github.com/users/smarek/orgs","repos_url":"https://api.github.com/users/smarek/repos","events_url":"https://api.github.com/users/smarek/events{/privacy}","received_events_url":"https://api.github.com/users/smarek/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T20:42:48Z","updated_at":"2015-10-26T20:42:48Z","body":"Only English please"}}