HttpResponseHandler

Trustin Lee trustin at gleamynode.net
Tue Jan 20 14:08:18 EST 2009


This question is a duplicate of the following thread:

    * http://n2.nabble.com/OutOfMemory-in-HttpClient-tp2170142p2170142.html

— Trustin Lee, http://gleamynode.net/



On Mon, Jan 19, 2009 at 2:18 AM, jaimemm <jaimemm at gmail.com> wrote:
>
> Hi,
>
> In order to make the http client asynchronous I get rid of the two following
> lines at the HttpClient:
>
> channel.getCloseFuture().awaitUninterruptibly();
> factory.releaseExternalResources();
>
> So I can send N messages within a loop (creating a new channel each time).
>
> To not run out of memory immediatelly I need to execute the two lines above
> inside the HttpResponseHandler into the messageReceived method. The problem
> is that e.getChannel().getCloseFuture().awaitUninterruptibly() never ends
> nor e.getChannel().getFactory().releaseExternalResources()
>
> Why is it not posible to execute that lines from the HttpResponseHandler?
>
> Thanks in advance
> --
> View this message in context: http://n2.nabble.com/HttpResponseHandler-tp2177729p2177729.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
>
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>
>




More information about the netty-users mailing list