hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Async API call
Date Wed, 09 Oct 2013 11:58:19 GMT
On Wed, 2013-10-09 at 12:23 +0530, mohan.radhakrishnan@polarisFT.com
wrote:
> Hi,
>        I am using this JUnit test( example from Apache HTTP Components as 
> it is ). I am sending JSON to a Netty server which is able to receive 2 
> POSTS
> and also send responses. I believe Netty can receive more requests but 
> that might be a different issue.
> 
> Here even for the 2 POSTS that Netty receives and sends responses the 
> callback methods are not called. I was thinking this unit test will 
> complete and the JVM will exit. But it doesn't happen.
> 
> When does 'future.get' return ? Does it return as soon as it sends and 
> receives a response ?
> 
> Since I am a new user I could be making some minor mistakes  but the code 
> is able to send and the server receives the JSON.
> 
> Thanks,
> Mohan

I ran your code with some minor modifications (I had to eliminate JSON
and Netty dependencies) and it worked just fine for me (both responses
correctly processed and the JVM terminated as expected). This seems to
point at the server side.

Oleg 


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


Mime
View raw message