NCSA 1.5.2 bug fix to server hanging
mike (baptiste@nortel.ca)
03 Dec 1996 08:00 EST
Message-Id: <199612031834.NAA29051@relay.openmarket.com>
Date: 03 Dec 1996 08:00 EST
To: mvg@iastate.edu
From: "mike (m.) baptiste" <baptiste@nortel.ca>
Subject: NCSA 1.5.2 bug fix to server hanging
NCSA's server has a bug that causes these hangs. Patch the fcgi.c file
with this tiny patch. It should solve your problems:
Alan Sparks writes:
|Has anybody gotten FastCGI 1.5 to work with NCSA 1.5.2? I compiled
|with the -DFCGI stuff, fixed a missing #include for sys/time.h, had
|to define a strerror() function (I patched one up using sys_errlist).
|Finally got a clean build.
|
|But, after setting up the tiny-perl-fcgi stuff, the browser hangs.
|I've gotten Apache to work with it, but never NCSA.
|
|Anybody have a battle story they'd like to share, or a good binary
|for SunOS 4.1.4 I could borrow? I feel ugly about the fact that
|it doesn't build without first dorking with it... :(
Try this patch. It works for 1.5.2 & 1.5.2a
*** fcgi.c Tue Jun 25 17:30:24 1996
--- ../../SSLhttpd_1.5.2/src/fcgi.c Mon Jul 15 17:56:44 1996
***************
*** 2287,2293 ****
else
FD_CLR(csdOut, &write_set);
! select_status = select(numFDs, &read_set, &write_set, NULL, NULL);
if(select_status < 0)
break;
--- 2303,2309 ----
else
FD_CLR(csdOut, &write_set);
! select_status = select(numFDs, &read_set, &write_set, NULL,
&timeOut);
if(select_status < 0)
break;
Mike Baptiste
baptiste@nortel.ca
In message "Stalling? hanging? Permission denied?", mvg@iastate.edu writes:
>
>I *appear* to have everything running. However, when I try to
>access the script tiny-perl.fcgi I get permission denied errors.
>If I go to /tmp and change
> srwxr-xr-x 1 root 0 Dec 2 23:09 OM_WS_1.6097=
>to
> srwxr-xr-x 1 nobody 0 Dec 2 23:09 OM_WS_1.6097=
>the process hangs or stalls.
>
>Does anyone know what is going on here???? I assume this is a
>quick fix. It may have something to do with the server forking
>off processes as nobody, but the fcgi-app processes are owned
>by root? Maybe thats the problem?
>
>Any help is much appreciated!!!!
>
>Server NCSA/1.5.2a
>DEC-ultrix4.3
>Perl5.00307 with FCGI-0.26
>
> _________________________________________________
>|Mark J. Van Gorp Iowa State University
>|mvg@iastate.edu 211 Durham Center
>| Ames, IA 50010
>|http://www.public.iastate.edu/~mvg
>|_________________________________________________
>
>