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 <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > > -- Ruwan Linton Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb WSO2 Inc.; http://wso2.org email: [email protected]; cell: +94 77 341 3097 blog: http://ruwansblog.blogspot.com
