My question:
I have installed httpd_3.0 from CERN on an ALPHA server 2100/500MP.
All seems to work well, but when a dynamic document is called
I often get error messages or an empty page.
easy example: the document is ../cgi-bin/hello:
#!/bin/sh
#
echo "Content-Type: text/html"; echo
echo "<html><head><title>"
echo "hello world"
echo "</title></head><body>"
echo "<h1>Hello World</h1>"
echo "</body></html>"
The error message from httpd when accessed:
...
TimeOut..... set for process 21014 (300 secs)
Child....... is alive
Child....... doing IO redirections
Child....... stdout to pipe
Child....... done
Child....... Standalone specific IO redirections done.
Child....... redirecting stderr to stdout, and then doing execve()
Parent...... child pid 21014 has finished
Parent...... 0K taken up by child, total 13354K used
HTLoadScriptResult: Read error, read returns 32
Socket...... 4 disconnected by peer
Child....... exiting with status 0
HTTP........ Closing socket 5
HTAccess.... ttp://pktw06.phy.tu-dresden.de/cgi-bin/hello' has been
accessed.
Socket...... 4 disconnected by peer
Child....... exiting with status 0
Parent...... child pid 21046 has finished
Parent...... 0K taken up by child, total 13354K used
Parent...... child pid 20443 has finished
Parent...... 0K taken up by child, total 13354K used
Next timeout after 9 hours 9 mins 45 secs
Daemon...... Waiting for connection (Mask=8 hex, max=4 hex).
...
---------------------------------------------------------------
Many thanks to Mike Matthews (Mike_Matthews_at_sgate.com) for
the fast response:
It's a known problem -- OSF/1 returns a SIGPIPE error. There is a patch,
though. In Library/Implementation/HTScript.c, in the part that handles the
forking and execing, you need to put a sleep(1) before it closes the
filehandle.
Check out
http://www.w3.org/hypertext/WWW/Daemon/Bugs.html for more
information and the actual patch.
Have a nice easter
Rainer
| schwierz_at_pktw03.phy.tu-dresden.de |
| /_/_/_ /_/_ |
| /_ /_ /_ |
| /_/_/_ /_/_/_ |
| /_ /_ /_ |
| /_ /_ainer /_/_ chwierz, |
| Inst. f. Kern- und Teilchenphysik |
| TU Dresden |
| D-01062 Dresden |
| Tel. ++49 351 463 4425 FAX ++49 351 463 7292 |
Received on Thu Apr 13 1995 - 08:12:18 NZST