From: Stephen D. <sd...@gm...> - 2008-11-07 22:18:29
|
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. |