Denis Loh <denis.loh@...> writes: > 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.
If that's an administrative task, then perhaps you might do with external tools? Something along the lines of lsof -i -n -p `pidof tntnet` | grep TCP | grep ':http->' or ls -laF /proc/`pidof tntnet`/fd/ | grep socket ------------------------------------------------------------------------------ Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
