From: Vlad S. <vl...@cr...> - 2008-11-07 22:27:49
|
It is funny, using telnet and submitting same headers never triggers this, but when using firefox, after sevrral requests it hangs, and after timeout outputs: 0 c test page 0 as it lost sequence and puts the whole buffer with trailer as the first one. I want to find the problem and then will put test for future checks Stephen Deasey wrote: > On Fri, Nov 7, 2008 at 9:23 PM, Vlad Seryakov <vl...@cr...> wrote: >> This is the simple PHP page that triggers hanging, when attached to the >> nsd, backtrace on all thread show they all are in the condwait or poll >> wait, seems like sent/expected bytes miscalculation. >> >> <?php >> >> $test = @$_COOKIE["test"]; >> setcookie("test", "1", time() + 60, '/'); >> >> if ($test == "1") { >> header("HTTP/1.0 304 Not Modified"); >> exit(); >> } >> ?> >> test page >> > > > Make a 'tests' directory and add the above snippet. Make it run from > 'make test'. > > The 'nsvfs' module in CVS is an example of an external module which > has tests using the nstest_http command. You could just 'cp -a > ../nsvfs/tests tests' and then cut 'n paste from the Makefile. > |