Return-Path: Delivered-To: apmail-apache-bugdb-archive@apache.org Received: (qmail 72124 invoked by uid 500); 11 Jun 2001 17:20:02 -0000 Mailing-List: contact apache-bugdb-help@apache.org; run by ezmlm Precedence: bulk Reply-To: apache-bugdb@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list apache-bugdb@apache.org Received: (qmail 72105 invoked by uid 501); 11 Jun 2001 17:20:00 -0000 Resent-Date: 11 Jun 2001 17:20:00 -0000 Resent-Message-ID: <20010611172000.72103.qmail@apache.org> Resent-From: submit@bugz.apache.org (GNATS Filer) Resent-To: apache-bugdb@apache.org Resent-Cc: apache-bugdb@apache.org Resent-Reply-To: submit@bugz.apache.org, _espartaco@yahoo.com Received: (qmail 71997 invoked by uid 501); 11 Jun 2001 17:19:44 -0000 Message-Id: <20010611171944.71996.qmail@apache.org> Date: 11 Jun 2001 17:19:44 -0000 From: Edgar Ruiz <_espartaco@yahoo.com> Reply-To: _espartaco@yahoo.com To: submit@bugz.apache.org X-Send-Pr-Version: 3.110 Subject: os-windows/7850: Apache for Cygwin in Win9x is very slow when it executes CGI scripts >Number: 7850 >Category: os-windows >Synopsis: Apache for Cygwin in Win9x is very slow when it executes CGI scripts >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Jun 11 10:20:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: _espartaco@yahoo.com >Release: 1.3.20 >Organization: apache >Environment: CYGWIN_98-4.10 TAT 1.3.2(0.39/3/2) 2001-05-20 23:28 i586 unknown gcc version 2.95.3-2 (cygwin special) >Description: After executing any CGI script on Cygwin for Win9x, Apache takes 300 seconds to execute it completely. I have detected that Apache waits to that finishes the time defined in "Timeout" (in the file "httpd.conf") to stop the script. (a detailed report about this problem is found in the URL http://sources.redhat.com/ml/cygwin/2000-11/msg00733.html). >How-To-Repeat: After executing the Apache daemon, please execute the script that it comes preinstalled in the distribution: http://127.0.0.1:8080/cgi-bin/test-cgi >Fix: Yes, please apply the following patch: diff -urN apache_1.3.20/src/main/http_protocol.c apache_1.3.20-cygwin/src/main/http_protocol.c --- apache_1.3.20/src/main/http_protocol.c Fri Mar 9 10:10:26 2001 +++ apache_1.3.20-cygwin/src/main/http_protocol.c Mon Jun 11 18:08:42 2001 @@ -2275,9 +2275,16 @@ /* Make fb unbuffered and non-blocking */ ap_bsetflag(fb, B_RD, 0); +#ifdef CYGWIN +#define CYGWIN_is_winnt (GetVersion() < 0x80000000) + if (CYGWIN_is_winnt) { +#endif #ifndef TPF ap_bnonblock(fb, B_RD); #endif +#ifdef CYGWIN + } +#endif fd = ap_bfileno(fb, B_RD); #ifdef CHECK_FD_SETSIZE if (fd >= FD_SETSIZE) { >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]