From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d0dd1b2d1fa12adc,start X-Google-Attributes: gidfee84,public X-Google-Thread: f8b34,d0dd1b2d1fa12adc,start X-Google-Attributes: gidf8b34,public From: matt@vespucci.iquest.com (Matt Midboe) Subject: OSF/1 fgets() routine flakey? Date: 1995/06/29 Message-ID: <3stfo9$nbo@vespucci.iquest.com>#1/1 X-Deja-AN: 105263109 distribution: world summary: Someone please port FreeBSD to the DEC Alpha organization: interQuest: Fuel for the Mind keywords: apache fgets osf newsgroups: comp.unix.osf.osf1,comp.infosystems.www.servers.unix 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