Hi Oleg, I was able to get hold of the server side connection pool with using a list and recording them using the above mentioned methods.
Now I was trying to check the condition, whether a connection is being used or not at a given point in time. Meaning that whether this particular connection has a message in-flight at the given instance, could you help me on figuring out that condition as well? Checking both, getHttpRequest and getHttpResponse to be null will work, if my understanding of the code is correct, but is there a better way to check the above condition? Thanks in advance, Ruwan On Thu, Apr 15, 2010 at 9:05 PM, Ruwan Linton <[email protected]>wrote: > 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 > -- 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
