www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edgar Ruiz <_espart...@yahoo.com>
Subject os-windows/7850: Apache for Cygwin in Win9x is very slow when it executes CGI scripts
Date Mon, 11 Jun 2001 17:19:44 GMT

>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
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Jun 11 10:20:00 PDT 2001
>Originator:     _espartaco@yahoo.com
>Release:        1.3.20
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)
After executing any CGI script on Cygwin for Win9x, Apache takes 300 seconds to execute it
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).
After executing the Apache daemon, please execute the script that it comes preinstalled in
the distribution:
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) {
 #ifndef TPF
     ap_bnonblock(fb, B_RD);
+#ifdef CYGWIN
+    }
     fd = ap_bfileno(fb, B_RD);
     if (fd >= FD_SETSIZE) {
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> 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!     ]

View raw message