hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruwan Linton <ruwan.lin...@gmail.com>
Subject Re: Closing the persisted server connections on IOReactor pause
Date Thu, 15 Apr 2010 15:35:07 GMT
Hi Oleg,

Sorry for the late response, I was on a vacation. I will try this and get
back to you with the result.

Thanks a lot for the help.

Thanks,
Ruwan

On Tue, Apr 6, 2010 at 6:02 PM, Oleg Kalnichevski <olegk@apache.org> wrote:

> 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
>
>


-- 
Ruwan Linton
Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ruwan@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message