El mié, 20-01-2010 a las 11:07 +0100, Alvaro Lopez Ortega escribió: > [...] > But before I continue speculating, it'd be important to know whether the leak > actually exist. Does making a hundred thousand requests to the proxy make any > difference? Are more descriptors being left opened?
I'd have liked to peep in the proxy code, but I haven't had the time yet :( Anyway, I did a test following the steps to reproduce the problem: 1. Get a URL through the proxy 2. Wait for timeout 3. Go to 1 The script for the test is here: http://gist.github.com/281767 At the end it shows the difference in open fds according to fstat (lsof), and my results for 100 loops are: URL: ***, Loops: 100 -- FD Before: 79, After: 177, Diff: 98 It can be easily ported to Linux using lsof instead of fstat. Please notice that the server it's in production, so the results may have some noise for real requests (but not very much, because it's a very low traffic site). I don't know if that's OK, or it's related to some dark behavior in OpenBSD, or if I'm totally wrong :D Regards, Juanjo -- jjm's home: http://www.usebox.net/jjm/ blackshell: http://blackshell.usebox.net/ ramble on: http://rambleon.usebox.net/ _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
