Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* OSF/1 fgets() routine flakey?
@ 1995-06-29  4:00 Matt Midboe
  0 siblings, 0 replies; only message in thread
From: Matt Midboe @ 1995-06-29  4:00 UTC (permalink / raw)


I'm having a really bizarre problem with Apache on an OSF/1 v3.0
machine. First off let me state that this seems to be just an OSF
thing and not an Apache thing. The same scripts work fine on a FreeBSD
machine running Apache. When I go through my form and then submit it
via a post method it goes to a perl program which spits back some html
telling me it got the info. Now this does not work everytime and here
is some stats on my success. The N means I got a 500 Server Error and
the Y means I got the proper results back.

NYNNYNYYYYNNNNNNYNNNYNYYYYNYNNYYYYNYYNYYYNYYN
21 N
24 Y

NNNYNYYYNNYNNNNNYYNNNNYYYNNNNNYNNYNNYNYYYYNYN
27 N
18 Y

The response it sent back for each positive response is 469 bytes.

Does anyone have any idea why OSF/1 is acting so flakey on this? Here
is the routine it goes through. Is there some known problem with
fgets() or something?

    while(1) {
       
/* why did this use getline, when we can use stdio buffered I/O?? */
/* maybe we should put a timeout on this. */
       
        if (fgets(w, MAX_STRING_LEN-1, f) == NULL) {
            sprintf(w,"httpd: (1) malformed header from script %s",path);     
            die(SERVER_ERROR,w,fd);
        }
       
Matt
matt@iquest.com



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

only message in thread, other threads:[~1995-06-29  4:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-06-29  4:00 OSF/1 fgets() routine flakey? Matt Midboe

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