HttpClient resuing the same connection

rajks rajks at hotmail.com
Fri May 15 04:54:30 EDT 2009


Thanks. I am planning to try that out with the HttpClient from the example.


Danny Tai wrote:
> 
> Hi Raj,
> 
> On Fri, May 15, 2009 at 3:24 PM, rajks <rajks at hotmail.com> wrote:
>>
>> Hi,
>>
>> With the Netty http client and Netty http server with keep-alive on, Can
>> I
>> push more than one request on the same channel i.e  keep doing
>> channle.write(req) while a current request is already on the channel and
>> response is awaited ? Will the http response handler MessageReceived be
>> called on every response.
>>
> 
> Yes to both. You can keep doing channel.write(request) to the channel
> unless server or your response handler close it. But ,please note
> HTTPconnection works in one way  communication. That means you can
> only send or receive  at one time. So if there are  many and
> continuous requests, it is a chance server cann't response
> immediately.
> 
>>
>> Thanks
>> Raj
>> --
>> View this message in context:
>> http://n2.nabble.com/HttpClient-resuing-the-same-connection-tp2906381p2906381.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
>>
> 
> 
> 
> -- 
> -
> Best regards,
> 
> Dai Jun or Danny Dai in English, http://guiwuu.googlepages.com
> GTalk: guiwuu at gmail.com | QQ: 93409048 | MSN: guiwuu at hotmail.com |
> Twitter: guiwuu
> 
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
> 
> 

-- 
View this message in context: http://n2.nabble.com/HttpClient-resuing-the-same-connection-tp2906381p2906708.html
Sent from the Netty User Group mailing list archive at Nabble.com.





More information about the netty-users mailing list