tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: http on 2100
@ 1995-04-13 12:11 Schwierz Rainer Tel. 4425
  0 siblings, 0 replies; only message in thread
From: Schwierz Rainer Tel. 4425 @ 1995-04-13 12:11 UTC (permalink / raw)
  To: tru64-unix-managers

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.... \bttp://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 |

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-04-13 12:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-04-13 12:11 SUMMARY: http on 2100 Schwierz Rainer Tel. 4425

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox