* Bjoern Hoehrmann wrote:
>This is what HTML::Template would generate for the request if no
>parameters are set. Parameters should be set though and this is
>the output even if the corresponding print() is commented out, so
>this output is a bit strange and unexpected. Again, this happens
>only under heavy load, it does not happen for e.g. `ab -c 1 -n 600`
>or at least rarely.

This was apparently caused by code like this

  use File::Temp qw();
  my $fh = File::Temp->new();
  File::Temp::unlink0($fh, $fh->filename);
  print "Content-Type:text/plain\n\n";

On Win32 this would delay unlinking the temp files until File::Temp is
unloaded. For some reason, File::Temp stops creating new temp files
after about 180 files. Using it with stand-alone Perl it should allow
for > 2000 temp files. I'm not sure why File::Temp does not croak here
then or why this causes the strange behavior, but fixing the incorrect
code above solves the problem.

>The test input I'm using should yield in 102 reported errors.
>Under normal load, only 94 errors are reported (the last 8 errors
>are missing), under heavy load, sometimes, 102 erors are reported.

I could track this down to input like

  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  <nobr>...</nobr>

This should result in an error 'element "NOBR" undefined' from OpenSP.
When running it under mod_perl and the winnt mpm however it gives this
message sometimes and 'document type does not allow element "NOBR"
here' on other times. At some point I got different errors for every
other request though it's not that stable anymore. It's not possible
to reproduce this when using debug builds of OpenSP...
-- 
Björn Höhrmann · mailto:[EMAIL PROTECTED] · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Reply via email to