{"action":"created","issue":{"url":"https://api.github.com/repos/AsyncHttpClient/async-http-client/issues/1070","labels_url":"https://api.github.com/repos/AsyncHttpClient/async-http-client/issues/1070/labels{/name}","comments_url":"https://api.github.com/repos/AsyncHttpClient/async-http-client/issues/1070/comments","events_url":"https://api.github.com/repos/AsyncHttpClient/async-http-client/issues/1070/events","html_url":"https://github.com/AsyncHttpClient/async-http-client/issues/1070","id":124785697,"number":1070,"title":"NettyResponseFuture can wait indefinitely?","user":{"login":"jon-ruckwood","id":435298,"avatar_url":"https://avatars.githubusercontent.com/u/435298?v=3","gravatar_id":"","url":"https://api.github.com/users/jon-ruckwood","html_url":"https://github.com/jon-ruckwood","followers_url":"https://api.github.com/users/jon-ruckwood/followers","following_url":"https://api.github.com/users/jon-ruckwood/following{/other_user}","gists_url":"https://api.github.com/users/jon-ruckwood/gists{/gist_id}","starred_url":"https://api.github.com/users/jon-ruckwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jon-ruckwood/subscriptions","organizations_url":"https://api.github.com/users/jon-ruckwood/orgs","repos_url":"https://api.github.com/users/jon-ruckwood/repos","events_url":"https://api.github.com/users/jon-ruckwood/events{/privacy}","received_events_url":"https://api.github.com/users/jon-ruckwood/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AsyncHttpClient/async-http-client/labels/AHC2","name":"AHC2","color":"c7def8"},{"url":"https://api.github.com/repos/AsyncHttpClient/async-http-client/labels/Defect","name":"Defect","color":"e11d21"},{"url":"https://api.github.com/repos/AsyncHttpClient/async-http-client/labels/Netty","name":"Netty","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"slandelle","id":849197,"avatar_url":"https://avatars.githubusercontent.com/u/849197?v=3","gravatar_id":"","url":"https://api.github.com/users/slandelle","html_url":"https://github.com/slandelle","followers_url":"https://api.github.com/users/slandelle/followers","following_url":"https://api.github.com/users/slandelle/following{/other_user}","gists_url":"https://api.github.com/users/slandelle/gists{/gist_id}","starred_url":"https://api.github.com/users/slandelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slandelle/subscriptions","organizations_url":"https://api.github.com/users/slandelle/orgs","repos_url":"https://api.github.com/users/slandelle/repos","events_url":"https://api.github.com/users/slandelle/events{/privacy}","received_events_url":"https://api.github.com/users/slandelle/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/AsyncHttpClient/async-http-client/milestones/60","html_url":"https://github.com/AsyncHttpClient/async-http-client/milestones/2.0.0","labels_url":"https://api.github.com/repos/AsyncHttpClient/async-http-client/milestones/60/labels","id":1144491,"number":60,"title":"2.0.0","description":"","creator":{"login":"slandelle","id":849197,"avatar_url":"https://avatars.githubusercontent.com/u/849197?v=3","gravatar_id":"","url":"https://api.github.com/users/slandelle","html_url":"https://github.com/slandelle","followers_url":"https://api.github.com/users/slandelle/followers","following_url":"https://api.github.com/users/slandelle/following{/other_user}","gists_url":"https://api.github.com/users/slandelle/gists{/gist_id}","starred_url":"https://api.github.com/users/slandelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slandelle/subscriptions","organizations_url":"https://api.github.com/users/slandelle/orgs","repos_url":"https://api.github.com/users/slandelle/repos","events_url":"https://api.github.com/users/slandelle/events{/privacy}","received_events_url":"https://api.github.com/users/slandelle/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":77,"state":"open","created_at":"2015-06-02T08:41:16Z","updated_at":"2016-01-06T10:52:24Z","due_on":"2015-06-15T22:00:00Z","closed_at":null},"comments":5,"created_at":"2016-01-04T16:04:44Z","updated_at":"2016-01-06T10:57:58Z","closed_at":"2016-01-06T10:52:24Z","body":"A http request was made days ago, the thread dump indicates that it was waiting - there may have been an unknown issue with the upstream server when the request was in progress:\r\n\r\n```\r\nFoo-1 id=19 state=WAITING\r\n    - waiting on <0x55f017db> (a java.util.concurrent.CountDownLatch$Sync)\r\n    - locked <0x55f017db> (a java.util.concurrent.CountDownLatch$Sync)\r\n    at sun.misc.Unsafe.park(Native Method)\r\n    at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)\r\n    at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:836)\r\n    at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:997)\r\n    at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1304)\r\n    at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:231)\r\n    at com.ning.http.client.providers.netty.future.NettyResponseFuture.get(NettyResponseFuture.java:152)\r\n    ...\r\n```\r\nNothing in the logs indicates an error/exception was encountered by async-http-client (logging is set to `INFO`). \r\n\r\nI am using version `1.9.15` and I am creating the client as such:\r\n\r\n```java\r\nAsyncHttpClient client = new AsyncHttpClient();\r\n```\r\n\r\nI appreciate there's not much to go on but do you know what may have happened here? \r\n\r\nI'm considering using `NettyResponseFuture#get(long l, TimeUnit tu)` instead but I would have thought that something would have aborted processing given the time involved? \r\n\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/AsyncHttpClient/async-http-client/issues/comments/169297209","html_url":"https://github.com/AsyncHttpClient/async-http-client/issues/1070#issuecomment-169297209","issue_url":"https://api.github.com/repos/AsyncHttpClient/async-http-client/issues/1070","id":169297209,"user":{"login":"jon-ruckwood","id":435298,"avatar_url":"https://avatars.githubusercontent.com/u/435298?v=3","gravatar_id":"","url":"https://api.github.com/users/jon-ruckwood","html_url":"https://github.com/jon-ruckwood","followers_url":"https://api.github.com/users/jon-ruckwood/followers","following_url":"https://api.github.com/users/jon-ruckwood/following{/other_user}","gists_url":"https://api.github.com/users/jon-ruckwood/gists{/gist_id}","starred_url":"https://api.github.com/users/jon-ruckwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jon-ruckwood/subscriptions","organizations_url":"https://api.github.com/users/jon-ruckwood/orgs","repos_url":"https://api.github.com/users/jon-ruckwood/repos","events_url":"https://api.github.com/users/jon-ruckwood/events{/privacy}","received_events_url":"https://api.github.com/users/jon-ruckwood/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T10:57:58Z","updated_at":"2016-01-06T10:57:58Z","body":"I've switched to using the latest AHC2 RC. Thanks for helping me get to the bottom of this! "}}