hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Closing the persisted server connections on IOReactor pause
Date Tue, 06 Apr 2010 12:32:33 GMT
On Tue, 2010-04-06 at 12:59 +0530, Ruwan Linton wrote:
> Hi Devs,
> 
> We (Synapse) has a requirement to close the persisted connections
> (keep-alive) when the IOReactor is being paused, and I have looked at the
> code and tried to get hold of all the persisted connections that are being
> used at the time of the IOReactor pause, without any success :-(
> 
> 1) Is it possible to do this?

Yes, it is.

> 2) If so, can you please point me to a code snippet or class or a method to
> have a look at in getting all the keep-alive connections?
> 

You should be using #connected and #disconnected methods of
NHttpClientHandler / NHttpServerHandler interfaces to keep track of open
HTTP connections. 

Hope this helps

Oleg


> Thanks,
> Ruwan
> 



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


Mime
View raw message