FastCGI and NT

Benjamin Gavin (gavinb@supranet.net)
Thu, 21 Aug 1997 12:43:19 -0500

Message-Id: <3.0.3.32.19970821124319.0096de90@mail.supranet.net>
Date: Thu, 21 Aug 1997 12:43:19 -0500
To: fastcgi-developers@OpenMarket.com
From: Benjamin Gavin <gavinb@supranet.net>
Subject: FastCGI and NT

-----BEGIN PGP SIGNED MESSAGE-----

Hi,
  I have just recently gotten FastCGI up and Running under NT.  The 
programs seem to work fine, at least the example ones.  I do have one 
small problem though.  I have written my own FastCGI program, runs 
fine under regular CGI, and as a CGI under FastCGI.  However when I 
try to run it as a FastCGI program there seems to be a bug in the 
FastCGI libraries.  It seems that no matter how many times I call the 
FastCGI program, I always get the same CONTENT_LENGTH value.  No 
matter how long the content really is.
  This seems to be set the first time the program is called.  It 
first starts the program and passes it the environ variables.  Then 
my program reads those variables and reads from the socket the amount 
given by that CONTENT_LENGTH variable.  Well it works fine for the 
first time, and for any subsequent time after that where the content-
length is IDENTICAL, however, if I try to send too little, or too 
much, it reads in garbage, or truncates the data respectively.
  It seems that the cgi-fcgi shim application is not functioning 
properly.  Has anyone seen this before, or is there a patch for this 
problem??  I really need the performance gain of FastCGI, or I'll 
have to convert to ISAPI.... YUCK!!

Thanks in advance,
Ben
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQCVAwUBM/x+N0tkpl99enKxAQHTbwP/V6GVHVgCvZXJ8U6v8yxQEq0ZnYCZrYCw
NLnOyqsI9XqqxS34gbWC4m9BGj+ue0vqw5a8y67/O5dAxaTDRYX6wl2hV+9fvTnt
i/S1cTitqUzGcrJcDsGkv8Es/xAzhaf3DIPkQqX/Vowpj6ZoDA2BNlEw+hBJIMPq
6ZyyrDHQKdY=
=SbWS
-----END PGP SIGNATURE-----