Jason Pump | 1 Apr 2005 17:58
Favicon

RE: Multi-thread Fast-CGI performance problem & more

Try raising number of simultaneous connection from the client (ab) machine:

http://www.speedguide.net/read_articles.php?id=157

Windows 2000 Web Patch

According to the HTTP specs, only limited number of simultaneous connections
are allowed, while loading pages. To increase that number, you can add the
following entries to the Registry (they are not present by default):

HKEY_USERS.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet
Settings
"MaxConnectionsPerServer"=dword:00000020
"MaxConnectionsPer1_0Server"=dword:00000020

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings
"MaxConnectionsPerServer"=dword:00000020
"MaxConnectionsPer1_0Server"=dword:00000020

Note: Keep in mind that although those values work fine in most cases, they
exceed the HTTP specs and therefore might cause problems with some websites.
If you experience problems, just remove the entries. While these entries
might improve web page loading considerably, they tend to strain webservers
more and have no effect on throughput.

Alternatively, you can download a patch (sguide_webtweak_2k) that will add
these entries for you automatically from the Downloads section of our site.

> -----Original Message-----
(Continue reading)

Ed Kenny | 2 Apr 2005 06:46

upgrading from 1.3.19 to 2.05 breaks

Hi there,

 

I’m hoping someone here can help me.

I’d like to move to Apache 2,  but I can’t figure out why this upgrade is breaking my FCGI External Server.

 

I’m using fastcgi 2.4.2 on the WEB server with Apache 2.052, no problems.

On the APP server which is working fine running 1.319 , & fastcgi 2.4.0, it breaks when I go to Apache 2 and either fastcgi 2.4.0 or 2.4.2. In the APP logs I get Version 60! error, and Method Not Implemented. On the WEB side logs I see x01/x01, which I take to mean no headers sent.

 

What has changed?

Here is my fastcgi configuration running on the APP server:

 

Alias cgi-bin/   "/ops/web/cgi-bin/"

Alias /cgi-bin/     "/ops/web/cgi-bin/"

 

 

<Directory "/ops/web/cgi-bin/">

                AllowOverride None

                Options ExecCGI

             SetHandler fastcgi-script

             Order allow,deny

             Allow from all

</Directory>

 

AppClass /ops/web/cgi-bin/app1.exe  -port 55551 -flush

<Location /cgi-bin/app1.exe>

SetHandler fastcgi-script

</Location>

<SNIP>

 

<SNIP>

AddHandler fastcgi-script .exe

 

 

 

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
sean | 2 Apr 2005 06:47

Re: fastcgi-developers Digest, Vol 27, Issue 1

I am out at AAA this week and checking email as I can but it will be sporadic, if you need an immediate response
please email support@...  You can also try my cell phone at
415-850-9619. Thank you and see you AAA.

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
Sam Vilain | 4 Apr 2005 21:58
Favicon
Gravatar

FastCGI specification license encumberment

Forgive me if this issue has been raised before...

It is my observation that there is a clause in the copyright notice for 
the FastCGI protocol specification that the document may only be used 
for the purposes of implementing the FastCGI protocol specification.

I am fairly sure this is legally void for all intents and purposes. 
Even if it did have any weight, it would not at all have any effect on 
the resulting license of software coded to match the specification document.

Does anyone know of any previous discussion on this matter?  btw, I'm 
not interested in any "right" answers, tia :)

Sam.
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/

Ed Kenny | 5 Apr 2005 14:57

mod_fastcgi 2.4.0 not backward compatible with 2.2.3

Ed Kenny <edkenny <at> ...> writes:

 

Update: I've been trying different things with my FastCGI ExternalServer setup and I believe I've isolated the problem. So far it seems the root problem has nothing to do with the Apache versions in use.

 I am using mod_fastcgi 2.4.2 on the web side which works with mod_fastcgi 2.2.3 running on the App side. When I

try to upgrade mod_fastcgi on the App side to 2.4.0 or 2.4.2 it breaks with these exact errors:

 

(WEB SERVER ERROR LOG):  [Mon Apr 04 17:09:18 2005] [error] [client 10.1.1.1] FastCGI: comm with server "/usr/local/apache2/cgi-bin/app1.exe"

aborted: protocol error: invalid version: 60 != FCGI_VERSION(1) [Mon Apr 04 17:09:18 2005] [error] [client 10.1.1.1] FastCGI: incomplete headers (0 bytes) received from server "/usr/local/apache2/cgi-bin/app1.exe"

 

(WEB SERVER ACCESS LOG):  10.1.1.1 - - [04/Apr/2005:17:09:18 -0400] "GET /cs_alogin.exe HTTP/1.1" 500 1109 

 

(APP SERVER ERROR LOG): [Mon Apr  4 17:14:07 2005] [error] [client 10.1.1.1] Invalid method in request \x01\x01

 

So it seems mod_fastcgi 2.4.0 is not backward compatible with 2.2.3. utilizing the External Server.

 

That would be OK by itself, but I do not think mod_fastcgi 2.2.3 is compatible with Apache 2. I’ll be trying that next just to be sure.

 

I have not been able to find any relevant information on how I should accomplish this migration to the current mod-fastcgi release from 2.2.3.

Can anyone give me a clue as to what I need to change in my code to make this migration work? Or what changed from 2.2.3 to 2.4.0 to make earlier implementations unusable?

 

Thanks,

Ed

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
Eric Cifreo | 8 Apr 2005 22:31
Picon

trouble with getenv

Hi all,

New to the fastcgi-dev list.  I've been playing with the example
applications today and I'm having trouble gettting getenv() to return
anything.  Some google searches turned up some archived posts from
this list but seemed to suggest that getenv() should work fine as long
as you call it after you call FCGI_Accept().  I've slightly modified
the example to look like this:

#include "fcgi_stdio.h" 
#include <stdlib.h>
#include "fcgiapp.h"

int count;

void initialize(void)
{
  count=0;
}

void main(void)
{

  initialize();

  while (FCGI_Accept() >= 0)   {
  char* host = getenv( "SERVER_HOSTNAME" );

  if( !host)
	  host = "getenv failed";

    printf("Content-type: text/html\r\n"
           "\r\n"
           "<title>FastCGI Hello! (C, fcgi_stdio library)</title>"
           "<h1>FastCGI Hello! (C, fcgi_stdio library)</h1>"
           "Request number %d running on host <i>%s</i>\n",
            ++count, host );
  }

}

So I get the standard output from the example except the hostname
lookup from the environment failed so I get "getenv failed."  I built
the "echo" example as well and when I run it I see this in the
browser:
#########
FastCGI echo
Request number 28, Process ID: 2480

No data from standard input.

Request environment:

SystemRoot=C:\WINNT
_FCGI_SHUTDOWN_EVENT_=1260
_FCGI_MUTEX_=1264

Initial environment:

SystemRoot=C:\WINNT
_FCGI_SHUTDOWN_EVENT_=1260
_FCGI_MUTEX_=1264
#########

Shouldn't there be more in the request environment?

My dev setup is Window 2000 Professional  SP3, MSVC++6 SP6, Apache
2.0.53, mod_fastcgi 2.4.2.

Any solution to what I'm doing wrong here?
Thanks in advance,

--eric
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/

Gavin | 9 Apr 2005 00:31

Re: FastCGI specification license encumberment

I also wonder about the legal status of the original FastCGI code and the Open Market license, especially
given the turbulence with Open Market ... or is the Open Market, Inc. in the FastCGI license a different
company than the one in these articles?
http://www.internetnews.com/ent-news/article.php/2205661
http://www.euclidsr.com/press/EUPRESSRELEASE_89018.html

Searching Fastcgi.com for 'license':
http://www.google.com/search?q=license+site%3Afastcgi.com&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official

The issue has been raised before:
http://www.fastcgi.com/archives/fastcgi-developers/2000-August/000355.html

Anyone have answers?
Who is currently the legal copyright owner of the original code?

Cheers,
Gavin

----- Original Message ----- 
From: "Sam Vilain" <sam@...>
To: <fastcgi-developers@...>
Sent: Monday, April 04, 2005 12:58 PM
Subject: [FASTCGI] FastCGI specification license encumberment

> Forgive me if this issue has been raised before...
> 
> It is my observation that there is a clause in the copyright notice for 
> the FastCGI protocol specification that the document may only be used 
> for the purposes of implementing the FastCGI protocol specification.
> 
> I am fairly sure this is legally void for all intents and purposes. 
> Even if it did have any weight, it would not at all have any effect on 
> the resulting license of software coded to match the specification document.
> 
> Does anyone know of any previous discussion on this matter?  btw, I'm 
> not interested in any "right" answers, tia :)
> 
> Sam.
> ___________________________________
> fastcgi-developers mailing list
> http://fastcgi.com/fastcgi-developers/
> 
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/

Sonia | 11 Apr 2005 15:54
Picon
Picon
Favicon

XML File processing with Fast CGI

Hi all, 
I'm trying to make a FASTCGI external server work. The
FastCGI external server must proccess an XML file and
echo it to the Apache. The file is sent by an HTML
form and the post method.
How can I eliminate the fastcgi header to get only the
XML file?? I'm using fciapp functions.
Thanks in advance!!
Sonia

		
______________________________________________ 
Renovamos el Correo Yahoo!: ¡250 MB GRATIS! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/

Sven Verdoolaege | 13 Apr 2005 16:36
Favicon

Re: Bootstrapping fcgi2 CVS checkout? (aclocal, automake, autoconf)

On Mon, Jan 17, 2005 at 01:49:44PM +0000, sacha wrote:
>  % aclocal
>  % automake --gnu --add-missing
>  automake: Makefile.am: installing `./INSTALL'
>  automake: Makefile.am: required file `./NEWS' not found
>  automake: Makefile.am: required file `./README' not found
>  automake: Makefile.am: installing `./COPYING'
>  automake: Makefile.am: required file `./AUTHORS' not found
>  automake: Makefile.am: required file `./ChangeLog' not found
>  configure.in: 10: required file `./fcgi_config.h.in' not found

Run autoheader

>  % autoconf
>  autoconf: Undefined macros:
>  configure.in:71:AC_CONFIG_FILES([Makefile

update autoconf

skimo
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
Ian Stuart | 12 Apr 2005 20:08
Picon

Trouble compiling Perl module on AIX 5.2

Hi,

I have AIX 5.2 , Perl 5.0.8 and gcc 3.3.2.0,  IBMs HTTPServer (Apache) 
with mod_fastcgi already installed and FCGI was compiled from 
fcgi-2.4.0.  I am  trying to compile the Perl module  in fcgi-2.4.0 but 
get an error after running the make.  I get the same error when 
compiling from fcgi-0.67.  Can someone shed any light on what is 
happening and how to fix this.

# perl Makefile.PL
Writing Makefile for FCGI
# make
        cc_r -c  -I. -I/epp3/apache/fcgi-2.4.0/perl/../include  
-D_ALL_SOURCE -D
_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias 
-DUSE_NATIVE_DLOPEN
-DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong -O    
-DVERSION=\"0.67\"  -DX
S_VERSION=\"0.67\"  "-I/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE"   
FCGI.c
/bin/sh: cc_r:  not found.
make: 1254-004 The error code from the last command is 127.

Stop.

Im the Makefile,  CC = cc_r, which appears to be the problem  - I have 
tried setting this to gcc but get other errors related  compiler options.

Many thanks
Ian  Stuart

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/


Gmane