Call WSASetLastError() instead of SetLastError()
[mod_fastcgi.git] / CHANGES
blobaa81e9aa2644d4972276782e3e451df457d30ff9
1 2.2.13
3  *) Handle an application returning a complete and valid response without 
4     having consumed all of the data sent to it.
6  *) Consume remaining client data (RESPONDERs only) if any.
8  *) Add support for backing off attempts to start applications that continuously
9     fail to start.  Three new macros defined in mod_fastcgi.h control this 
10     behaviour: MAX_FAILED_STARTS, RUNTIME_SUCCESS_INTERVAL, FAILED_STARTS_DELAY
12  *) [WIN32] Add (back) support for use of TerminateProcess() to accomodate
13     applications that do not (properly) support the shutdown event (this
14     feature was introduced in fcgi2 2.2.2 and improved in 2.2.4).  The 
15     new macro WIN32_SHUTDOWN_GRACEFUL_WAIT in mod_fastcgi.h conrols the 
16     interval between signaling a proper shutdown and wacking the process(s)
17     with a TerminateProcess().
19  *) [WIN32] Don't set the OVERLAPPED_IO flag on NamedPipe listen HANDLEs - 
20     setting it was just plain broken.
22  *) [WIN32] Fix the accept mutex - all applications were sharing one!? 
24  *) Fix 'FastCgiConfig -autoUpdate'.
26  *) Fix 'FastCgiConfig -flush'.
28  *) Prevent silly maxProcesses and processSlack combinations.
29     Dmitry Dorofeev [dima@yasp.com]
30                                                                
31  *) Properly handle the killing of idle processes when one takes a long time
32     to exit once signaled down (or the config is funky).
33     Dmitry Dorofeev [dima@yasp.com]
35  *) Always kill the youngest instance of an application.  Suggested by 
36     Dmitry Dorofeev [dima@yasp.com]
38 2.2.12
40  *) Delay the logging of write errors to the pm to account for shutdown/restart.
42  *) (Win32) An assortment of fixes.
44  *) Fix some broken casts that were likely the cause of an assert.
46  *) Win32. Eliminate forward slashes from the named pipe path name.
47     Gerald Richter [richter@ecos.de]
49  *) SIGUSR2 is no longer blocked in the process manager and the fastcgi 
50     applications it spawns. [ryans@amazon.com]
52  *) Added support for the -flush argument to FastCgiConfig. 
53     Eric Sit [esit@alum.mit.edu]
55  *) Change the "which call to module_init() is this" check to a more
56     reliable approach.  Doru Petrescu [pdoru@kappa.ro]
58  *) Close the old pipe file descriptor in apache main on USR1/HUP 
59     (elimnates a small leak).  James E. Jurach Jr. jjurach@fundsxpress.com
61  *) Fix a bug in fcgi_config_set_authoritative_slot(). Tetsuya Furukawa
62     [tetsuya@secom-sis.co.jp]
64  *) Eliminate the use of locks to assist in the clean shutdown of
65     applications.  Instead, it is assumed that applications handle
66     termination signals properly (this is now embedded in the C
67     application lib).
69  *) Fix Win32 process termination.  Proper operation requires the use of
70     an updated application lib (termination is now signalled with an
71         Event and handled by specialized thread).
73  *) Docs cleanup.  Andrew Benham [adsb@bigfoot.com]
75  *) Added code so if the last instance of a dynamic application died without
76     provocation, then don't restart it if singleThreshold > 0 (i.e. if the
77     configuration allows the last instance to be killed, then allow it to die).
78     Andrew Benham [adsb@bigfoot.com]
80  *) Fix the loadFactor calculation used to determine when dyanmic
81     applications could be killed off due to low demand [adsb@bigfoot.com].
83  *) Fix a deadlock condition that could occur with Win32 named 
84     pipes (dynamic).
86  *) Fix a potential deadlock condition when FastCGI application
87     sent responses while still reading the client request (POST data).
89 2.2.10
91  *) Allow absolute pathnames in the -socket argument.  Suggested by 
92     Christian Jaeger [christian.jaeger@sl.ethz.ch].
94  *) Don't invoke suexec when the user/group for the fastcgi application
95     is the same as the apache main server.  This is consistent with 
96     apache's suexec handling.  Suggested by Nikolaus Rath [Nikolaus@rath.org].
98  *) Reset the apache drop dead timer upon successful read or writes
99     to/from the client.  This eliminates timeouts that were occuring
100     during the large file transfers to/from slow clients.
102  *) Support generic wrappers such as cgiwrap by eliminating dependencies
103     on Apache's SUEXEC, renaming the FastCgiSuexec directive 
104     FastCgiWrapper and eliminating any checks regarding the target 
105     application (this is the repsonibility of the wrapper).
107  *) Fix a nasty bug that occurred when a client aborted a POST request 
108     before the connection to a dynamic FastCGI application was opened.
109     The application's lock file descriptor wasn't setup but was being 
110     closed which resulted in FD0 being closed.  Normally this is open to 
111     /dev/null and should pose no problems except that because the FD
112     was available it was being returned by Apache's accept().  This 
113     caused it to be registered for pool cleanup.  mod_cgi though moves
114     the CGI stdin pipe to FD0 and thus it was getting waxed during pool
115     cleanup.  Problem identified by checksum@163.net.
117 Changes with mod_fastcgi 2.2.8
119  *) Eliminate the concept of disabled applications.  If a failure 
120     occurs trying to setup an application (e.g. bind() error) its 
121     tried repeatedly every init-start-delay seconds.
123  *) Tweak to Makefile.tmpl to support DSOs.  Dave Hill [ddhill@zk3.dec.com]
125 Changes with mod_fastcgi 2.2.6
127  *) Shutdown the PM when Apache appears to have disappeared.
129  *) seteuid() tweak for HP-UX 11.  Milton L. Hankins [mlh@swl.msd.ray.com]
131  *) (Win32) More dynamic fixes.
133  *) (Win32) Eliminate the per application named pipe mutex.  Its now 
134     per process to keep the lib happy (the use _FCGI_MUTEX_ should
135     removed from the lib).  This allows pipe-based applications to
136     now handle multiple simoultanous requests (one per process).
138  *) Increase the number of open FDs we look to close when spawning apps.
140  *) Prevent an assert from popping unnecessarily.
142  *) (Win32) Add support for interpretter scripts.
144  *) (Win32) Fix named pipe handling (problems with large responses).
146  *) (Win32) Remove the "can exec" check.
148 Changes with mod_fastcgi 2.2.4
150  *) Beta WinNT support.  David Allen [djallen@raleigh.ibm.com] and 
151     Rob Saccoccio [robs@chelsea.net]
153  *) Remove request type restriction (GET and POST only) in order to support
154     Web DAV requests.  Scott Robertson [sroberts@codeit.com] 
156  *) Allow requests for URLs such as /server/some/other/qualifier to match a
157     FastCGI server defined as /server.  This was done primarily for Java
158         Servlets, but is generically useful.
160  *) Change the comm between the PM and the request handlers from a regular
161     file to a pipe and an assortment of other dynamic fixes.
163  *) Log dynamic process termination scheduling and the resulting 
164     process exit notification.
166  *) Change the default singleThreshhold from 10 to 0 to prevent the last dynamic
167     application process from being killed off due to low demand.
169  *) Clean up FastCGI application pathnames (e.g. remove duplicate slashes). 
171  *) Fix bugs that prevented dynamic processes from being shutdown when
172     the load subsided.  Lars Heete [heete@do.isst.fhg.de]
174  *) Prevent dynamic processes from being scheduled to be started before
175     the init-start-delay or restart-delay period expires.  This prevents
176         the queuing of process start requests while an application which has
177         a long initialization period starts up.
179  *) When suexec is enabled, allow the process manager to become root again in
180     order to signal applications it spawned.
182  *) Change the "server started" log message level from INFO to WARN.
184  *) Fix dynamic server "Connection Refused" handling.
186  *) Fix demand-based dynamic process spawing (uses a more portable approach).
188  *) Add -idle-timeout arg to FastCgiServer, FastCgiExternalServer, and
189     FastCgiConfig.  mod_fastcgi will now abort a connection if inactive for
190         longer than this period.  It applies to the initiation of connections as
191         well (and thus is similar to appConnTimeout).  Default is 30 seconds.
193  *) appConnTimeout is 0 by default now resulting in blocking connect()s.  This
194     is more platform portable/predicable.
196  *) Leave STDOUT and STDERR open to the main server error_log.  This should
197     eliminate a pile of protocol errors and having to track down 3rd party
198     libs writing to stderr inadvertantly.  This doesn't mean these shouldn't
199     be fixed in the application to use the FastCGI I/O, it just allows these
200     applications to run when previously they'd crash and burn.
202  *) Add the pass-header arg to server directives.
204  *) Allow supplementary groups to be passed to spawned FastCGI applications (as
205     is done for CGI) - at least until PR2580 is resolved.
207  *) Initialize the default (empty) environment in a more socially acceptable
208     way.
210  *) Miscellaneous doc improvements based on notes I've collected up over the
211     last few months.
213  *) Fix a bug in the stderr handling introduced in 2.2.2.  There were conditions
214     that resulted in not or improperly terminated strings.
216  *) Fix the call to setsockopt() to disable Nagle.  [based on a bug report by
217     Johannes Plassmann <johannes.plassmann@pdb.siemens.de>]
219 Changes with mod_fastcgi 2.2.2
221  *) Added support for blocking connect()s by setting appConnTimeout to 0.
222     Non-blocking connect()s (the default) can be troublesome on some platforms.
223     Its expected that blocking connect()s will become the default (and
224     non-blocking connect()s will become optional) in the next release.
226  *) Dump a compile time error if the version of Apache is too old.
228  *) Wrap the SIGPIPE handler manipulation code such that it is only applicable
229     to Apache releases prior to 1.3.6.
231  *) Minor tweaks for RUSSIAN_APACHE.  [Sergey Gershtein <sg@mplik.ru>]
233  *) Dynamic updates:
235     Always restart a failed dynamic application if it is the last instance.
236     This means there once started there will always be at least one process
237     instance of a dynamic application.
239     Send PLEASE_START to the PM when a connect() results in an ECONNREFUSED.
240     ECONNREFUSED means the listen queue is full (or there isn't one).  Asking
241     the PM to start (another) application instance may help empty it faster.
243     Change two sleep() calls to select() based snoozes because alarm() is in
244     effect and sleep() and alarm() don't always play nice together.
246     Fixed a couple of error messages.
248  *) Fix -listen-queue-depth arg on FastCgiConfig (dynamic).  Previously it
249     was ignored and the default was always used.
251  *) Allow the -initial-env argument to be used to pass variables from the
252     Apache process environment to the FastCGI server (by specifying a
253     variable name without the "=" or a value).  [suggested by
254     Martin Lichtin <lichtin@oanda.com>]
256  *) Cleanup some debug macros.
258  *) Improved script stderr handling.  [based on suggestions by
259     David Birnbaum <davidb@chelsea.net>]
261  *) Added IRIX and FreeBSD to the list of supported platforms and other minor
262     updates to the INSTALL doc.
264  *) Changed the default listen-queue-depth (FCGI_DEFAULT_LISTEN_Q) from
265     5 to 100.  Its still configurable with the -listen-queue-depth option.
266     This should help eliminate the FAQ - Why do I see "Connection Refused"
267     messages in the log?
269  *) Fix a bug in FastCgiExternalServer that broke support for external servers
270     on other hosts.  [Dave Neuer <dneuer@futuristics.net>]
272 Changes with mod_fastcgi 2.2.1
274  *) Updates to the INSTALL doc to describe building as a DSO.
276  *) If the FastCgiIpcDir directive was in use and "httpd -t" was issued while
277     Apache was running ("apachectl restart" does this), the contents of the
278     dynamic directory (dynamic sockets and the mbox) would be blown away
279     (a 2.1b1 bug).
281  *) Add an extern declaration for ap_sys_siglist (its exposed but not in any
282     Apache header file) to prevent a compile error on systems without
283     SYS_SIGLIST defined.
285  *) During auth requests, the subprocess_env table was left holding variables
286     sent to the auth FastCGI server (including REMOTE_PASSWD!) which means they
287     were passed to other processing phases (such as CGI/FastCGI).  The
288     subprocess_env is now restored to its pre-auth condition.
290  *) Added a FastCGI Authorizer Role compatibility mode which implements the
291     specification to the tee.  Use -compat arg with any of the Auth server
292     directives.  This is intended for new and existing FastCGI authorizer
293     applications that require compatibility with other server implementations.
295  *) Fix logging from the process manager.  Previously, all calls to the
296     logging routines used NULL for the server_rec.  This works fine in a dev
297     environment, but results in most of these messages being tossed by
298     log_error_core() because DEFAULT_LOGLEVEL is too low.  Odd logic.
300  *) Always setup fr->header so that in the event the FastCGI server
301     doesn't get a valid FastCGI protocol header over the wire, we
302     can still print our error message to the log from do_work().
304  *) Fix a compile error in open_connection_to_fs() on systems with TCP_NODELAY
305     defined (Don Locrasto [locrasto@iceminer.com]).
307 Changes with mod_fastcgi 2.2.0
309  *) Serious rewrite of mod_fastcgi.html.  An example conf will have
310     to wait until another time - I'm burned out on docs updates.
312  *) Add to the mod_fastcgi to the server version string.
314  *) SCO doesn't like the const in the arg to inet_addr() and
315     gethostbyname().
317  *) Use Apache's NET_SIZE_T to get the correct arg type for getsockopt().
319  *) Deleted redundant header files from fcgi.h.
321  *) Full path names are no longer required for directives which take
322     file names as arguments.  Like other Apache directives you can
323     specify paths from server_root (don't start with a "/").
325  *) The fcgiKillMgr is gone.  This intermediate process sat between
326     the Apache parent and the FastCGI Process Manager under Apache
327     1.2.         The process manager tries to name itself fcgi_pm (it used
328     to be fcgiProcMgr).
330  *) Authentication, Authorization, and Access phases are now
331     supported. I've bent the FastCgi spec a bit: as many of the standard
332     environment variables (that were easy) are sent (the spec says don't
333     send some by name), all headers (except Status) sent by the auth
334     FastCgi server are passed to subprocesses (CGI/FastCGI invocations)
335     as environment variables rather than just those prefixed by
336     "Variable-".  Custom responses for auth failures aren't supported
337     (yet.. we'll see what the demand for this is like).  In addition to
338     the FastCGI protocol defined environment variable "FCGI_ROLE" being
339     set to "AUTHORIZER" an environment variable "FCGI_APACHE_ROLE" is
340     set indicating which of the three phases is being processed.  See
341     the docs for info on the new per-directory directives:
343         FastCgiAuthenticator, FastCgiAuthenticatorAuthoritative,
344         FastCgiAuthorizer, FastCgiAuthorizerAuthoritative,
345         FastCgiAccessChecker, FastCgiAccessCheckerAuthoritative
347  *) The code has been broken into logical chunks making figuring it
348     out much easier.  All of the #defines a user may want to change are
349     now in mod_fastcgi.h.
351  *) All the logging has been converted to the "supported" Apache
352     logging routines, ap_log_error() and ap_log_rerror().  Log entries
353     for request specific errors should now be directed to the correct
354     server errorlog (if your running more than one).  Some attempt has
355     been made at setting appropriate log levels (comments of course are
356     welcome) and printing errno info when its of value.  All of log
357     messages now have "FastCGI" in them (nice for grep).
359  *) All of the calls to Apache routines have been updated to the ap_
360     convention, eliminating the need for the compat header.
362  *) By default we no longer flush every piece of data we get from the
363     FastCGI server to the client.  This allows the FastCGI server to
364     release without having to wait for the client flush to complete.
365     The old behaviour can revived with the -flush argument to AppClass.
367  *) I renamed some of the directives for consistency (the old names
368     still work).
370         AppClass -> FastCgiServer,
371         FCGIConfig -> FastCgiConfig,
372         ExternalAppClass -> FastCgiExternalServer
374  *) Directive arguments are no longer case sensitive.
376  *) The module now uses hard_timeout() rather than soft_timeout.  This
377     means that the module will longjump out of the request if the
378     drop-dead timeout expires (set with Apache's Timeout directive, the
379     default is 5min) or if the client closes the connection (SIGPIPE).
380     This is more typical for a Apache modules and I'm not convinced we
381     properly handle all of the error cases well enough to use
382     soft_timeout (I can think of one place we don't anyway). This means
383     your FastCGI application can see SIGPIPE.
385  *) SIGPIPE is now ignored by default in FastCGI servers spawned by
386     Apache.  Without this the default behaviour is exit().
388  *) It should (I think) run now under DSO now.
390  *) The bug which prevented sending of binary data in 2.1b1 is fixed.
392  *) The broken -initial-env bug ins 2.1b1 is fixed.
394  *) Maybe some other stuff.
398 *** Well there's a big gap here.  Maybe I'll go back and extract the CVS
399 commit notes and stick 'em in here.. when I get some free time. ;)
401     --robs  (8 Feb 99)
404 *** Originally from docs/README..
406 Apache[X1.03.01]/mod_fastcgi[02.00.05] 19970909 unsupported
407 From: Stanley Gambarin <stanleyg@cs.bu.edu>
409  *) Yet more changes to the source distribution.  Separated out
410     the Tcl dynamic string and buffer libraries into separate files.
411     Did the same for the OS library, however, it is not really an
412     abstraction... more like a bunch of wrappers.  Added to DEVNOTES
413     a note about the problem of Apache not allowing including header
414     file more than once.
416 Apache[X1.03.01]/mod_fastcgi[02.00.04] 19970908 unsupported
417 From: Stanley Gambarin <stanleyg@cs.bu.edu>
419  *) More changes to the installation scripts.  Theoretically we
420     should be able to to use the same Makefile/installation script
421     for both Apache 1.2.x and 1.3.x.  Need some sort of the abstraction
422     layer to use the same source code for both 1.2.x and 1.3.x sources.
424 Apache[X1.03.01]/mod_fastcgi[02.00.03] 19970905 unsupported
425 From: Stanley Gambarin <stanleyg@cs.bu.edu>
427  *) Created Makefile to compile the module into the archive library,
428     just like the proxy module.  Also initial draft of the installation
429     script, which should work for both 1.2 and 1.3 sources of Apache.
431 Apache[01.02.04]/mod_fastcgi[02.00.02] 19970903 unsupported
432 From: Stanley Gambarin <stanleyg@cs.bu.edu>
434  *) More source reorg.  Separated out some header files.  Need much
435     more work on this.  Updated the TODO file.  Added fcgivers.h and
436     CHANGES     file to track the history.
438 Apache[01.02.04]/mod_fastcgi[02.00.01] 19970902 unsupported
439 From: Stanley Gambarin <stanleyg@cs.bu.edu>
441  *) Source reorganization.  This is done to provide a basis for later
442     functionality implementation.  See TODO file for more information
443     of what possible future enhancements are possible/desired.
445 Apache[01.02.04]/mod_fastcgi[02.00.00] 19970902 unsupported
446 From:  David MacKenzie <djm@va.pubnix.com>
448  *) Create the "dynamic" dir and "mbox" as the user specified in the
449     User and Group directives instead of as root.  They are created with
450     restrictive permissions, and then the module checks to see whether the
451     user specified in the User and Group directives has read, write, and
452     execute permissions on them.  Those permissions had been explicitly
453     denied by creating them as "root".
455  *) Some documentation was garbled or incomplete.
457  *) When a FastCGI application can't be execl'd, the code used a
458     value of errno that may have been stomped on by intervening system
459     calls.  That happened on BSD/OS 2.1, where the error_log was
460     reporting errno=25 (NOTTY) instead of the correct errno=13 (EACCES).
461     An intervening stdio call was setting errno as a side-effect, which
462     it has the right to do.
464  *) Erroneous fprintf arguments, a missing return value, an unused
465     function, missing declarations, and other problems detected by gcc
466     -Wall.
468  *) Duplicated code to create the lock file name merged into a single
469     function, closing several memory leaks.
471  *) FCGIConfig -minProcesses didn't allow a value of 0, so the last
472     FCGI app in a given dynamic class would live forever, even if it
473     hadn't been requested for weeks.
475  *) The test for whether to keep looking for dynamic app victims to
476     kill was backwards, so no dynamic apps were ever selected as
477     victims.
479  *) The killInterval and updateInterval were being ignored; the
480     sigsuspend() forced recalculations only when a child died,
481     instead of at the intervals specified.
483  *) When a dynamic app couldn't be started, the program SEGV'd when
484     trying to free the ipcAddrPtr twice.
486  *) Remove the dead lock file and socket when cleaning up after a
487         server whose last child has been killed, so the FastCGIHandler
488     isn't fooled into thinking there is still a process serving
489     that app.
491  *) Make file locking robust in the presence of signals.
493  *) Rename some badly named variables.
495  *) Fix typos in many comments.
497  *) Fix some memory and file descriptor leaks.
499  *) Make the blocking kill of a server closer to working.
501  *) More fixes to calculations in dynamic application management.
504 *** Originally from docs/README.OMI..
506 What's New: Version 2.0b1, 16 Apr 1997
508  *) Implemented a mechanism by which FastCGI applications are started by
509     the web server on the first request and continue running.  Also,  a
510     heuristics have been implemented to allow for dynamic killing of the
511     running FastCGI apps.  The configuration options are supplied via
512         the new FCGIConfig directive, that is described in the
513         mod_fastcgi.html
515  *) When performing internal redirect, since the original request's body
516     has already been read, do not allow the redirected request to think
517     that is has one [body].
519  *) More conditional compilation for OS/2.
521  *) Fixed occassional  "Assertion failed: len > 0, file mod_fastcgi.c"
523  *) Fixed "failed assertion `count >= 0 && count <= bufPtr->length'"
525  *) Added bflush() call after bwrite() in DrainReqOutBuf function to
526     force some output to be written in the period of inactivity. This
527     circumvents the Apache's buffering during the server-push.
529  *) Added a header-parser function placeholder for compatibility with an
530     Apache source code.
532  *) Additional checks have been placed with regard to permissions of the
533     FastCGI processes.  These include the existence of the  file,
534     ExecCGI and IncludesNOEXEC checks, disallowing of nph- scripts, etc.
536  *) Implemented a restart cleanup, so that no parentlesses FastCGI
537         applications are left after Apache is restarted and/or terminated.
538         This was accomplished via two independent mechanisms, where the
539         first one prevents a start of the process manager on the first
540         reading of the configuration files.  The second mechanism deals away
541         from Apache's  implementation of fork() (via spawn_child()) and
542         implements its own forking, thus removing any dependencies on the
543         Apache to cleanup  processes during termination phase.
545  *) Removed the definition of the Sigfunc, as Apache 2.0b10 defines it
546     itself in the file conf.h
548 What's New: Version 1.4.3, 15 Jan 1997
550  *) Fixed compilation warnings for various platforms, as well as
551         conditional compilation for OS/2.
553 What's New: Version 1.4.2, 12 Dec 1996
555  *) mod_fastcgi.c is ported to Apache 1.2b.  Any further development
556         will proceed under this version of Apache web server.
558  *) As the result of porting, the "include virtual" construct of SSI
559         will now work correctly using either <Location> or <Directory>
560         directive.
562 What's New: Version 1.4.1, 4 Dec 1996
564  *) Checks have been removed from the ScanCGIHeaders that provided
565     for the presence of both Status and Location headers as being
566     an error.  Contradictory to CGI/1.1 Internet Draft, both of
567     these headers are used by the current CGI applications.
569 What's New: Version 1.4, 22 Nov 1996
571  *) Added the -port option to AppClass, allowing TCP/IP communication.
572     Added the -socket option to AppClass, allowing Unix domain
573     communication via a configurable pathname.
575  *) Added the ExternalAppClass directive, allowing TCP/IP
576     communication with remote FastCGI applications.
578  *) The handler had its own code for generating HTTP response headers;
579     now it uses Apache's.  This reduces the size of the module.
580     More importantly, it fixes the bug in which "include virtual"
581     sees the HTTP response headers.
583  *) The response header parser performed very little checking.
584     Now the parser enforces the guidelines in the CGI/1.1
585     Internet-Draft: Status and Location are mutually exclusive,
586     Location can only be a response to GET or HEAD,
587     CGI response headers can't be repeated, etc.  (The CGI response
588     headers are the ones the handler interprets: Status, Location,
589     and Content-type.)
591  *) The response header parser used to miss CGI headers
592     with no whitespace after the colon, e.g. "Status:200 OK".
594  *) The response header parser sometimes interpreted the first line
595     of content as an RFC822 continuation line.
597  *) The handler implemented a nonstandard version of Location
598     which never used internal redirects.  The handler
599     now attempts to implement Location as specified in the
600     CGI/1.1 Internet-Draft.  The module documentation explains
601     the new behavior.
603  *) Error log entries from the response header parser were
604     pretty uninformative; they are better now.  If a header is
605     malformed, the log entry includes it.  If the headers are
606     unterminated rather than malformed, the log entry says that,
607     and says how many bytes were received from the app.
609  *) When the application manager forked a new process, and that
610     process ran into trouble before executing the first instruction
611     of application code, the process used to exit with status =
612     errno.  This made certain configuration problems (e.g. incorrect
613     file permissions when server parent is root) quite difficult
614     to pin down.  Now the failing child process opens up the error log
615     and writes an informative entry before exiting.
617  *) The module now correctly handles a slash at the end of the
618     DocumentRoot directive.  This was a one-line fix.
620 What's New: Version 1.3.3, 17 Oct 1996
622  *) The module now registers its request handler under the name
623     fastcgi-script in addition to the name application/x-httpd-fcgi.
624     This was a one-line addition to the module, but had quite
625     a large impact on the documentation and sample configuration.
627 What's New: Version 1.3.2, 27 Sept 1996
629  *) On some systems (SunOS, Linux?), fopen for append has a bug
630     that strikes when two processes append to the same file.
631     This bug causes the process manager to corrupt the error log.
632     Work around the bug by calling open, then fdopen.  A patch
633     to Apache 1.1.1 is also required, as described in mod_fastcgi.html.
634     (Reported by Bob Ramstad.)
636 What's New: Version 1.3.1, 17 Sept 1996
638  *) On Linux and SunOS, the Apache default user_id (-1) is not a
639     legal value of uid_t, so cast it.  (Reported by Bob Ramstad,
640     Scott Langley, others.)
642  *) On some systems (Linux, some Solaris?, Irix?), connect requires
643     write access to a Unix Domain socket, so provide it.  (Reported
644     by Scott Langley, freeform@wired.com, others.)
646  *) If you hit a .fcg file, but there's no AppClass defined, the
647     error should be NOT_FOUND instead of SERVER_ERROR.  (Reported
648     by Michael Smith.)
650 What's New: Version 1.3, 4 Sept 1996
652  *) Module sometimes busy-waited in FastCgiDoWork.  Fixed.
654  *) Module violated the Apache buff abstraction.
655     Fixed.  Might now work with SSL (not tested).
656     As part of the fix, eliminated support for
657     Apache 1.0x versions.
659  *) Module failed to chmod the Unix domain listening sockets
660     it created, so protections were set according to the current
661     umask.  Fixed.
663  *) Module forked too many process manager processes: One
664     per AppClass.  When the Apache parent ran as root, these
665     process manager processes ran as root.  New process
666     manager is a single process (only started if AppClass is
667     used) and runs with same privileges as other children.
668     The new process manager doesn't do any polling, so
669     there's less system overhead than before.
671  *) AppClass insisted on getting at least two arguments.  Fixed.
673  *) Module used setjmp/longjmp, causing compiler warnings
674     on some platforms (e.g. Linux.)  The module no longer
675     uses setjmp/longjmp.
677  *) Module created listening sockets in /tmp, where they were
678     sometimes wiped out by cleanup scripts.  Added FastCgiIpcDir
679     directive to give control over the location of listening
680     sockets.
682  *) Module wrote error log entries without a timestamp.  Fixed.
684  *) AppClass directive wrote error messages to stderr in addition
685     to returning a char * message to the Apache core.  Fixed.
687 What's New: Version 1.2, 3 June 1996
689  *) Ported from Apache-1.0-based code to Apache-1.1b2 internals by
690     Ralf S. Engelschall
691     <rse@en.muc.de>
692     Add version string: APACHEVERSION macro to mod_fastcgi.c
694  *) chown FastCGI socket to user_id and setuid to user_id for app
695     class processes
697  *) Modify GetFromStream() by having it call an OS dependent
698     function GetStreamSize(FILE *) which uses FILE internal data member.
699     Linux users might need to modify GetStreamSize().
701 What's New: Version 1.1, 10 May 1996
703  *) If you specify a non-existent executable in the AppClass directive,
704         or if the file exists and it does not have execute permission you
705         get a constant stream of error messages telling you that "program
706         terminated due to a signal".
708  *) The mod_fastcgi module should use the standard Apache error logging
709         facility instead of writing to stderr.
711 Version 1.0, 30 April 1996