From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075319106486.tru64-unix-managers.marc@archive.invalid> From: "Schwierz Rainer Tel. 4425" Date: Thu, 13 Apr 1995 12:11:30 +0000 To: tru64-unix-managers Subject: SUMMARY: http on 2100 X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075319106486 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 "" echo "hello world" echo "" echo "

Hello World

" echo "" 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@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@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 |