Hi Tommi, I try to be more precise: I want to detect on server side if there are any open or pending requests, so that I know when to shut down the server. I am using your library to serve streaming contents and I want to prevent the user from closing open connections when he want to stop the server. So, I thought about displaying a message or something else that there are active requests.
I hope it's now a little bit more clear. Thank you. Denis Am 29.09.2012 20:10, schrieb Tommi Mäkitalo: > Am 23.09.2012 18:16, schrieb Denis Loh: >> Hi, >> >> is it possible to determine if there are active http connections, i.e. >> if someone is requesting or currently loading a file via tntnet? >> >> Thanks, >> >> Denis > Hi, > > I don't quite understand, what you want to achieve. > > A request don't have access to other requests so it can't determine the > state of other requests. > > Of course all requests run in the same process, so you can do something > with global variables or singletons to communicate between requests. But > be aware to do proper locking then. > > Tommi > > ------------------------------------------------------------------------------ > How fast is your code? > 3 out of 4 devs don\\\'t know how their code performs in production. > Find out how slow your code is with AppDynamics Lite. > http://ad.doubleclick.net/clk;262219672;13503038;z? > http://info.appdynamics.com/FreeJavaPerformanceDownload.html > _______________________________________________ > Tntnet-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/tntnet-general ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
