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

Oleg Kalnichevski commented on HTTPASYNC-35:
--------------------------------------------

Herve

There is one confirmed case of HTTP exchanges getting stuck on a faulty 
redirect (HTTPASYNC-34). The problem has been fixed in trunk. Could you please 
re-run your test with the latest snapshot off the trunk? If the problem still 
persists I would need some more specific input from you to be able to reproduce 
the issue locally (preferably a reproducible test case) .

Oleg
                
> Some requests never make it to the callbacks function
> -----------------------------------------------------
>
>                 Key: HTTPASYNC-35
>                 URL: https://issues.apache.org/jira/browse/HTTPASYNC-35
>             Project: HttpComponents HttpAsyncClient
>          Issue Type: Bug
>            Reporter: Herve Eichwald
>            Priority: Critical
>
> Hi,
> I am not sure if I am using the code the right way but here is what I see: 
> some requests do not throw any exceptions in the client.execute() method but 
> they never go in one of the callbacks methods success, cancelled or failed. 
> Is this something you experienced?
> I am using this code (extract):
>  SortedMap<String, Long> connectionsAliveTime = 
> Collections.synchronizedSortedMap(new TreeMap<String, Long>());
>               IOReactorConfig ioConfig = new IOReactorConfig();
>               ioConfig.setConnectTimeout(15000);
>               ioConfig.setSoTimeout(15000);
>               ioConfig.setIoThreadCount(10);
>               DefaultConnectingIOReactor ioReactor = new 
> DefaultConnectingIOReactor(ioConfig);
>               this.client = new DefaultHttpAsyncClient(new 
> PoolingClientAsyncConnectionManager(ioReactor));
> .....
> client.execute(httpGet, callback);
> Then just after the call to execute I put the url in a Map associated with a 
> timestamp.
> connectionsAliveTime.put(url, System.currentTimeMillis());
> In all the three callback functions, I remove the url from the Map.
> I run this on a lot of urls, and look each 30 seconds what I have in the Map 
> (the Map is synchronized).
> After 5 minutes, I see a lot of urls which are still in the Map for more than 
> 2 minutes.
> Can you tell me what you think of this ?
> Thanks

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to