You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2012/08/22 16:49:42 UTC

[jira] [Commented] (HTTPASYNC-23) request never completes

    [ https://issues.apache.org/jira/browse/HTTPASYNC-23?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439577#comment-13439577 ] 

Oleg Kalnichevski commented on HTTPASYNC-23:
--------------------------------------------

Kireet
Even though the problem cannot be deterministically reproduced it would still help me a great deal if you could put together a test application for this issue. This would enable me to see how exactly the API are being used, how timeouts are configured, and so on. A complete wire / context log of the HTTP session exhibiting the problem would also be great. 

Oleg 
                
> request never completes
> -----------------------
>
>                 Key: HTTPASYNC-23
>                 URL: https://issues.apache.org/jira/browse/HTTPASYNC-23
>             Project: HttpComponents HttpAsyncClient
>          Issue Type: Bug
>    Affects Versions: 4.0-beta2
>         Environment: linux
>            Reporter: Kireet Reddy
>
> I am using the DefaultAsyncHttpClient and fairly often requests are not completing. I have enabled logging and see the following when requesting url  http://g1.globo.com/pa/para/noticia/2012/08/bom-dia-para-desta-segunda-fala-sobre-importancia-do-voto.html
> o.a.h.i.n.c.DefaultHttpAsyncClient[DEBUG|feed-html-proc:3|13:43:13]: [exchange: 50] start execution
> o.a.h.i.n.c.DefaultHttpAsyncClient[DEBUG|feed-html-proc:3|13:43:13]: [exchange: 50] Request connection for {}->http://g1.globo.com
> o.a.h.i.n.c.PoolingClientAsyncConnectionManager[DEBUG|feed-html-proc:3|13:43:13]: Connection request: [route: {}->http://g1.globo.com][total kept alive: 4; route allocated: 1 of 10; total allocated: 9 of 400]
> o.a.h.i.n.c.PoolingClientAsyncConnectionManager[DEBUG|feed-html-proc:3|13:43:13]: Connection leased: [id: 9][route: {}->http://g1.globo.com][total kept alive: 3; route allocated: 1 of 10; total allocated: 9 of 400]
> o.a.h.i.n.c.DefaultHttpAsyncClient[DEBUG|feed-html-proc:3|13:43:13]: [exchange: 50] Connection allocated: [id:9][route:{}->http://g1.globo.com][state:null]
> o.a.h.i.nio.reactor.IOSessionImpl[DEBUG|feed-html-proc:3|13:43:13]: http-outgoing-9 216.218.207.141:53204<->186.192.82.114:80[ACTIVE][r:r]: Set attribute http.nio.exchange-handler
> o.a.h.i.nio.reactor.IOSessionImpl[DEBUG|feed-html-proc:3|13:43:13]: http-outgoing-9 216.218.207.141:53204<->186.192.82.114:80[ACTIVE][rw:r]: Event set [w]
> at this point, I don't see anything else for this exchange ID or get a callback until I shutdown the client. At that point I see:
> .a.h.i.n.c.DefaultHttpAsyncClient[DEBUG|Thread-3|14:16:20]: [exchange: 50] Cancelled
> o.a.h.i.n.c.PoolingClientAsyncConnectionManager[DEBUG|main|14:16:20]: Connection manager shut down
> o.a.h.i.n.c.DefaultHttpAsyncClient[DEBUG|Thread-3|14:16:20]: [exchange: 50] aborting connection [id:9][route:{}->http://g1.globo.com][state:null]
> Note the timestamp has progressed about 30 minutes with no timeout. I don't think there is anything particularly special about this URL, it seems to happen randomly. I can reproduce here easily but it won't be easy to create a reproduction test case as failures are sporadic.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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