3 *) [WIN] Fix starting of scripts under AP2.
5 *) Do the connect() to the application *after* collecting a chunk
6 of client data. This reinstates the pre-2.4.0 behaviour.
7 James Jurach [muaddib@erf.net].
9 *) Remove an assert that was triggering on WIN when spawn() failed.
11 *) Provide the NO_SUEXEC_FOR_AP_USER_N_GROUP macro for building
12 mod_fastcgi with the AP13 suexec behaviour (don't use suexec
13 if httpd's user and group match that needed for the application).
15 *) Prevent the use of all but the "auth" directives from being used
16 anywhere but in global scope. Prevent more than one instance
17 of the FastCgiWrapper directive.
19 *) Return NOT_FOUND (404) or FORBIDDEN (403) instead of
20 INTERNAL_SERVER_ERROR (500) when there are configuration issues
21 or the script does't exist. Suggested by Jeff Lawson [bovine@ud.com].
25 *) [*nix Security] - When FastCgiWrapper (FastCgiSuexec) was in use
26 and a vhost configured to use the same uid/gid as the main
27 server, mod_fastcgi would not bother using the wrapper (suexec)
28 because its effective uid/gid was already appropriate. This is
29 consistent with Apache's v1.3 mod_cgi behaviour. There are two
30 problems with this approach: 1) when FastCgWrapper is in use
31 mod_fastcgi's process manager keeps its root privileges (as its
32 real uid/gid) so it can terminate the applications its starts -
33 this privilege was being passed to applications when the use of
34 the wrapper was bypassed 2) wrappers are often employed to
35 perform functionality beyond setting the uid/gid - by not calling
36 the wrapper under certain circumstances, application invocation
37 environments were inconsistent. With this change, the wrapper is
38 always used (when enabled) under both Apache 1.3 and 2.
39 Reported by Michael Richards [michael@fastmail.ca].
41 *) [*nix/AP2] Use the vhost uid/gid instead of the server uid/gid
42 for dynamic application invocation when the FastCgiWrapper is in use.
43 Reported by Michael Richards [michael@fastmail.ca]
45 *) [*nix] Fix handling of FastCgiWrapper when passed a real path,
46 i.e. other than "on" or "off". Michael Richards [michael@fastmail.ca]
48 *) Eliminate the logging of "incomplete headers (0 bytes) received from
49 server" when a client aborts.
51 *) [WIN32] Fix a delay in handling large POSTs to named pipe based
52 servers. Philip Gladstone [philip@okena.com]
54 *) [*nix/AP2] Prevent the module from being initalized twice at startup
55 (resulting in confusing error messages to the log).
57 *) Eliminate the need for SetHandler or AddHandler with static or
58 external applications.
60 *) Limit PM requests to start a dynamic application
61 to 5sec to prevent endless spinning (this is a drop-dead
62 limit that should only occur if the socket/named_pipe directory
63 is removed out from under a running server).
65 *) [*nix] Change the default socket directory from /tmp/fcgi to:
67 Apache2 - RUNTIMEDIR/fastcgi
69 *) Add -user & -group args to FastCgiServer and FastCgiExternalServer
70 for use with wrappers (in lieu of finding the user/group associated
71 with a virtual host - under Apache2 this isn't accomodated).
73 *) [WIN32] Under Apache2, require v2.0.41 or later in order to pickup my
74 apr_proc_create() changes.
76 *) Log when invoking and restoring the restart backoff policy.
78 *) [WIN32] Prevent intermittent ReadFile() failures (properly initialize the
79 OVERLAPPED structure).
81 *) Eliminate need for dummy files for external servers under Apache2
83 *) Fix auth compatibility mode handling for access checker and authorizer
85 *) Fix HEAD request handling. Based on a patch by
86 Chris Lightfoot [chris@ex-parrot.com]
88 *) [*nix] When autoupdate is enabled touch the socket when restarting
89 the processes to prevent further requests.
90 Eckebrecht von Pappenheim [evp@heise.de]
92 *) Apache 2.0 support.
94 *) [WIN32] Don't read from a potentially closed named pipe.
95 Philip Gladstone [philip@okena.com]
97 *) Require the Apache version 1.3.6 or later to eliminate some signal
100 *) [WIN32] Use asyncronous io with named pipes instead of polled
101 nonblocking io. This should eliminate the last of the npipe issues.
103 *) Handle an application returning a complete and valid response without
104 having consumed all of the data sent to it.
106 *) Consume remaining client data (RESPONDERs only) if any.
108 *) Add support for backing off attempts to start applications that continuously
109 fail to start. Three new macros defined in mod_fastcgi.h control this
110 behaviour: MAX_FAILED_STARTS, RUNTIME_SUCCESS_INTERVAL, FAILED_STARTS_DELAY
112 *) [WIN32] Add (back) support for use of TerminateProcess() to accomodate
113 applications that do not (properly) support the shutdown event (this
114 feature was introduced in fcgi2 2.2.2 and improved in 2.2.4). The
115 new macro WIN32_SHUTDOWN_GRACEFUL_WAIT in mod_fastcgi.h conrols the
116 interval between signaling a proper shutdown and wacking the process(s)
117 with a TerminateProcess().
119 *) [WIN32] Don't set the OVERLAPPED_IO flag on NamedPipe listen HANDLEs -
120 setting it was just plain broken.
122 *) [WIN32] Fix the accept mutex - all applications were sharing one!?
124 *) Fix 'FastCgiConfig -autoUpdate'.
126 *) Fix 'FastCgiConfig -flush'.
128 *) Prevent silly maxProcesses and processSlack combinations.
129 Dmitry Dorofeev [dima@yasp.com]
131 *) Properly handle the killing of idle processes when one takes a long time
132 to exit once signaled down (or the config is funky).
133 Dmitry Dorofeev [dima@yasp.com]
135 *) Always kill the youngest instance of an application. Suggested by
136 Dmitry Dorofeev [dima@yasp.com]
140 *) Delay the logging of write errors to the pm to account for shutdown/restart.
142 *) (Win32) An assortment of fixes.
144 *) Fix some broken casts that were likely the cause of an assert.
146 *) Win32. Eliminate forward slashes from the named pipe path name.
147 Gerald Richter [richter@ecos.de]
149 *) SIGUSR2 is no longer blocked in the process manager and the fastcgi
150 applications it spawns. [ryans@amazon.com]
152 *) Added support for the -flush argument to FastCgiConfig.
153 Eric Sit [esit@alum.mit.edu]
155 *) Change the "which call to module_init() is this" check to a more
156 reliable approach. Doru Petrescu [pdoru@kappa.ro]
158 *) Close the old pipe file descriptor in apache main on USR1/HUP
159 (elimnates a small leak). James E. Jurach Jr. jjurach@fundsxpress.com
161 *) Fix a bug in fcgi_config_set_authoritative_slot(). Tetsuya Furukawa
162 [tetsuya@secom-sis.co.jp]
164 *) Eliminate the use of locks to assist in the clean shutdown of
165 applications. Instead, it is assumed that applications handle
166 termination signals properly (this is now embedded in the C
169 *) Fix Win32 process termination. Proper operation requires the use of
170 an updated application lib (termination is now signalled with an
171 Event and handled by specialized thread).
173 *) Docs cleanup. Andrew Benham [adsb@bigfoot.com]
175 *) Added code so if the last instance of a dynamic application died without
176 provocation, then don't restart it if singleThreshold > 0 (i.e. if the
177 configuration allows the last instance to be killed, then allow it to die).
178 Andrew Benham [adsb@bigfoot.com]
180 *) Fix the loadFactor calculation used to determine when dyanmic
181 applications could be killed off due to low demand [adsb@bigfoot.com].
183 *) Fix a deadlock condition that could occur with Win32 named
186 *) Fix a potential deadlock condition when FastCGI application
187 sent responses while still reading the client request (POST data).
191 *) Allow absolute pathnames in the -socket argument. Suggested by
192 Christian Jaeger [christian.jaeger@sl.ethz.ch].
194 *) Don't invoke suexec when the user/group for the fastcgi application
195 is the same as the apache main server. This is consistent with
196 apache's suexec handling. Suggested by Nikolaus Rath [Nikolaus@rath.org].
198 *) Reset the apache drop dead timer upon successful read or writes
199 to/from the client. This eliminates timeouts that were occuring
200 during the large file transfers to/from slow clients.
202 *) Support generic wrappers such as cgiwrap by eliminating dependencies
203 on Apache's SUEXEC, renaming the FastCgiSuexec directive
204 FastCgiWrapper and eliminating any checks regarding the target
205 application (this is the repsonibility of the wrapper).
207 *) Fix a nasty bug that occurred when a client aborted a POST request
208 before the connection to a dynamic FastCGI application was opened.
209 The application's lock file descriptor wasn't setup but was being
210 closed which resulted in FD0 being closed. Normally this is open to
211 /dev/null and should pose no problems except that because the FD
212 was available it was being returned by Apache's accept(). This
213 caused it to be registered for pool cleanup. mod_cgi though moves
214 the CGI stdin pipe to FD0 and thus it was getting waxed during pool
215 cleanup. Problem identified by checksum@163.net.
217 Changes with mod_fastcgi 2.2.8
219 *) Eliminate the concept of disabled applications. If a failure
220 occurs trying to setup an application (e.g. bind() error) its
221 tried repeatedly every init-start-delay seconds.
223 *) Tweak to Makefile.tmpl to support DSOs. Dave Hill [ddhill@zk3.dec.com]
225 Changes with mod_fastcgi 2.2.6
227 *) Shutdown the PM when Apache appears to have disappeared.
229 *) seteuid() tweak for HP-UX 11. Milton L. Hankins [mlh@swl.msd.ray.com]
231 *) (Win32) More dynamic fixes.
233 *) (Win32) Eliminate the per application named pipe mutex. Its now
234 per process to keep the lib happy (the use _FCGI_MUTEX_ should
235 removed from the lib). This allows pipe-based applications to
236 now handle multiple simoultanous requests (one per process).
238 *) Increase the number of open FDs we look to close when spawning apps.
240 *) Prevent an assert from popping unnecessarily.
242 *) (Win32) Add support for interpretter scripts.
244 *) (Win32) Fix named pipe handling (problems with large responses).
246 *) (Win32) Remove the "can exec" check.
248 Changes with mod_fastcgi 2.2.4
250 *) Beta WinNT support. David Allen [djallen@raleigh.ibm.com] and
251 Rob Saccoccio [robs@chelsea.net]
253 *) Remove request type restriction (GET and POST only) in order to support
254 Web DAV requests. Scott Robertson [sroberts@codeit.com]
256 *) Allow requests for URLs such as /server/some/other/qualifier to match a
257 FastCGI server defined as /server. This was done primarily for Java
258 Servlets, but is generically useful.
260 *) Change the comm between the PM and the request handlers from a regular
261 file to a pipe and an assortment of other dynamic fixes.
263 *) Log dynamic process termination scheduling and the resulting
264 process exit notification.
266 *) Change the default singleThreshhold from 10 to 0 to prevent the last dynamic
267 application process from being killed off due to low demand.
269 *) Clean up FastCGI application pathnames (e.g. remove duplicate slashes).
271 *) Fix bugs that prevented dynamic processes from being shutdown when
272 the load subsided. Lars Heete [heete@do.isst.fhg.de]
274 *) Prevent dynamic processes from being scheduled to be started before
275 the init-start-delay or restart-delay period expires. This prevents
276 the queuing of process start requests while an application which has
277 a long initialization period starts up.
279 *) When suexec is enabled, allow the process manager to become root again in
280 order to signal applications it spawned.
282 *) Change the "server started" log message level from INFO to WARN.
284 *) Fix dynamic server "Connection Refused" handling.
286 *) Fix demand-based dynamic process spawing (uses a more portable approach).
288 *) Add -idle-timeout arg to FastCgiServer, FastCgiExternalServer, and
289 FastCgiConfig. mod_fastcgi will now abort a connection if inactive for
290 longer than this period. It applies to the initiation of connections as
291 well (and thus is similar to appConnTimeout). Default is 30 seconds.
293 *) appConnTimeout is 0 by default now resulting in blocking connect()s. This
294 is more platform portable/predicable.
296 *) Leave STDOUT and STDERR open to the main server error_log. This should
297 eliminate a pile of protocol errors and having to track down 3rd party
298 libs writing to stderr inadvertantly. This doesn't mean these shouldn't
299 be fixed in the application to use the FastCGI I/O, it just allows these
300 applications to run when previously they'd crash and burn.
302 *) Add the pass-header arg to server directives.
304 *) Allow supplementary groups to be passed to spawned FastCGI applications (as
305 is done for CGI) - at least until PR2580 is resolved.
307 *) Initialize the default (empty) environment in a more socially acceptable
310 *) Miscellaneous doc improvements based on notes I've collected up over the
313 *) Fix a bug in the stderr handling introduced in 2.2.2. There were conditions
314 that resulted in not or improperly terminated strings.
316 *) Fix the call to setsockopt() to disable Nagle. [based on a bug report by
317 Johannes Plassmann <johannes.plassmann@pdb.siemens.de>]
319 Changes with mod_fastcgi 2.2.2
321 *) Added support for blocking connect()s by setting appConnTimeout to 0.
322 Non-blocking connect()s (the default) can be troublesome on some platforms.
323 Its expected that blocking connect()s will become the default (and
324 non-blocking connect()s will become optional) in the next release.
326 *) Dump a compile time error if the version of Apache is too old.
328 *) Wrap the SIGPIPE handler manipulation code such that it is only applicable
329 to Apache releases prior to 1.3.6.
331 *) Minor tweaks for RUSSIAN_APACHE. [Sergey Gershtein <sg@mplik.ru>]
335 Always restart a failed dynamic application if it is the last instance.
336 This means there once started there will always be at least one process
337 instance of a dynamic application.
339 Send PLEASE_START to the PM when a connect() results in an ECONNREFUSED.
340 ECONNREFUSED means the listen queue is full (or there isn't one). Asking
341 the PM to start (another) application instance may help empty it faster.
343 Change two sleep() calls to select() based snoozes because alarm() is in
344 effect and sleep() and alarm() don't always play nice together.
346 Fixed a couple of error messages.
348 *) Fix -listen-queue-depth arg on FastCgiConfig (dynamic). Previously it
349 was ignored and the default was always used.
351 *) Allow the -initial-env argument to be used to pass variables from the
352 Apache process environment to the FastCGI server (by specifying a
353 variable name without the "=" or a value). [suggested by
354 Martin Lichtin <lichtin@oanda.com>]
356 *) Cleanup some debug macros.
358 *) Improved script stderr handling. [based on suggestions by
359 David Birnbaum <davidb@chelsea.net>]
361 *) Added IRIX and FreeBSD to the list of supported platforms and other minor
362 updates to the INSTALL doc.
364 *) Changed the default listen-queue-depth (FCGI_DEFAULT_LISTEN_Q) from
365 5 to 100. Its still configurable with the -listen-queue-depth option.
366 This should help eliminate the FAQ - Why do I see "Connection Refused"
369 *) Fix a bug in FastCgiExternalServer that broke support for external servers
370 on other hosts. [Dave Neuer <dneuer@futuristics.net>]
372 Changes with mod_fastcgi 2.2.1
374 *) Updates to the INSTALL doc to describe building as a DSO.
376 *) If the FastCgiIpcDir directive was in use and "httpd -t" was issued while
377 Apache was running ("apachectl restart" does this), the contents of the
378 dynamic directory (dynamic sockets and the mbox) would be blown away
381 *) Add an extern declaration for ap_sys_siglist (its exposed but not in any
382 Apache header file) to prevent a compile error on systems without
385 *) During auth requests, the subprocess_env table was left holding variables
386 sent to the auth FastCGI server (including REMOTE_PASSWD!) which means they
387 were passed to other processing phases (such as CGI/FastCGI). The
388 subprocess_env is now restored to its pre-auth condition.
390 *) Added a FastCGI Authorizer Role compatibility mode which implements the
391 specification to the tee. Use -compat arg with any of the Auth server
392 directives. This is intended for new and existing FastCGI authorizer
393 applications that require compatibility with other server implementations.
395 *) Fix logging from the process manager. Previously, all calls to the
396 logging routines used NULL for the server_rec. This works fine in a dev
397 environment, but results in most of these messages being tossed by
398 log_error_core() because DEFAULT_LOGLEVEL is too low. Odd logic.
400 *) Always setup fr->header so that in the event the FastCGI server
401 doesn't get a valid FastCGI protocol header over the wire, we
402 can still print our error message to the log from do_work().
404 *) Fix a compile error in open_connection_to_fs() on systems with TCP_NODELAY
405 defined (Don Locrasto [locrasto@iceminer.com]).
407 Changes with mod_fastcgi 2.2.0
409 *) Serious rewrite of mod_fastcgi.html. An example conf will have
410 to wait until another time - I'm burned out on docs updates.
412 *) Add to the mod_fastcgi to the server version string.
414 *) SCO doesn't like the const in the arg to inet_addr() and
417 *) Use Apache's NET_SIZE_T to get the correct arg type for getsockopt().
419 *) Deleted redundant header files from fcgi.h.
421 *) Full path names are no longer required for directives which take
422 file names as arguments. Like other Apache directives you can
423 specify paths from server_root (don't start with a "/").
425 *) The fcgiKillMgr is gone. This intermediate process sat between
426 the Apache parent and the FastCGI Process Manager under Apache
427 1.2. The process manager tries to name itself fcgi_pm (it used
430 *) Authentication, Authorization, and Access phases are now
431 supported. I've bent the FastCgi spec a bit: as many of the standard
432 environment variables (that were easy) are sent (the spec says don't
433 send some by name), all headers (except Status) sent by the auth
434 FastCgi server are passed to subprocesses (CGI/FastCGI invocations)
435 as environment variables rather than just those prefixed by
436 "Variable-". Custom responses for auth failures aren't supported
437 (yet.. we'll see what the demand for this is like). In addition to
438 the FastCGI protocol defined environment variable "FCGI_ROLE" being
439 set to "AUTHORIZER" an environment variable "FCGI_APACHE_ROLE" is
440 set indicating which of the three phases is being processed. See
441 the docs for info on the new per-directory directives:
443 FastCgiAuthenticator, FastCgiAuthenticatorAuthoritative,
444 FastCgiAuthorizer, FastCgiAuthorizerAuthoritative,
445 FastCgiAccessChecker, FastCgiAccessCheckerAuthoritative
447 *) The code has been broken into logical chunks making figuring it
448 out much easier. All of the #defines a user may want to change are
449 now in mod_fastcgi.h.
451 *) All the logging has been converted to the "supported" Apache
452 logging routines, ap_log_error() and ap_log_rerror(). Log entries
453 for request specific errors should now be directed to the correct
454 server errorlog (if your running more than one). Some attempt has
455 been made at setting appropriate log levels (comments of course are
456 welcome) and printing errno info when its of value. All of log
457 messages now have "FastCGI" in them (nice for grep).
459 *) All of the calls to Apache routines have been updated to the ap_
460 convention, eliminating the need for the compat header.
462 *) By default we no longer flush every piece of data we get from the
463 FastCGI server to the client. This allows the FastCGI server to
464 release without having to wait for the client flush to complete.
465 The old behaviour can revived with the -flush argument to AppClass.
467 *) I renamed some of the directives for consistency (the old names
470 AppClass -> FastCgiServer,
471 FCGIConfig -> FastCgiConfig,
472 ExternalAppClass -> FastCgiExternalServer
474 *) Directive arguments are no longer case sensitive.
476 *) The module now uses hard_timeout() rather than soft_timeout. This
477 means that the module will longjump out of the request if the
478 drop-dead timeout expires (set with Apache's Timeout directive, the
479 default is 5min) or if the client closes the connection (SIGPIPE).
480 This is more typical for a Apache modules and I'm not convinced we
481 properly handle all of the error cases well enough to use
482 soft_timeout (I can think of one place we don't anyway). This means
483 your FastCGI application can see SIGPIPE.
485 *) SIGPIPE is now ignored by default in FastCGI servers spawned by
486 Apache. Without this the default behaviour is exit().
488 *) It should (I think) run now under DSO now.
490 *) The bug which prevented sending of binary data in 2.1b1 is fixed.
492 *) The broken -initial-env bug ins 2.1b1 is fixed.
494 *) Maybe some other stuff.
498 *** Well there's a big gap here. Maybe I'll go back and extract the CVS
499 commit notes and stick 'em in here.. when I get some free time. ;)
504 *** Originally from docs/README..
506 Apache[X1.03.01]/mod_fastcgi[02.00.05] 19970909 unsupported
507 From: Stanley Gambarin <stanleyg@cs.bu.edu>
509 *) Yet more changes to the source distribution. Separated out
510 the Tcl dynamic string and buffer libraries into separate files.
511 Did the same for the OS library, however, it is not really an
512 abstraction... more like a bunch of wrappers. Added to DEVNOTES
513 a note about the problem of Apache not allowing including header
516 Apache[X1.03.01]/mod_fastcgi[02.00.04] 19970908 unsupported
517 From: Stanley Gambarin <stanleyg@cs.bu.edu>
519 *) More changes to the installation scripts. Theoretically we
520 should be able to to use the same Makefile/installation script
521 for both Apache 1.2.x and 1.3.x. Need some sort of the abstraction
522 layer to use the same source code for both 1.2.x and 1.3.x sources.
524 Apache[X1.03.01]/mod_fastcgi[02.00.03] 19970905 unsupported
525 From: Stanley Gambarin <stanleyg@cs.bu.edu>
527 *) Created Makefile to compile the module into the archive library,
528 just like the proxy module. Also initial draft of the installation
529 script, which should work for both 1.2 and 1.3 sources of Apache.
531 Apache[01.02.04]/mod_fastcgi[02.00.02] 19970903 unsupported
532 From: Stanley Gambarin <stanleyg@cs.bu.edu>
534 *) More source reorg. Separated out some header files. Need much
535 more work on this. Updated the TODO file. Added fcgivers.h and
536 CHANGES file to track the history.
538 Apache[01.02.04]/mod_fastcgi[02.00.01] 19970902 unsupported
539 From: Stanley Gambarin <stanleyg@cs.bu.edu>
541 *) Source reorganization. This is done to provide a basis for later
542 functionality implementation. See TODO file for more information
543 of what possible future enhancements are possible/desired.
545 Apache[01.02.04]/mod_fastcgi[02.00.00] 19970902 unsupported
546 From: David MacKenzie <djm@va.pubnix.com>
548 *) Create the "dynamic" dir and "mbox" as the user specified in the
549 User and Group directives instead of as root. They are created with
550 restrictive permissions, and then the module checks to see whether the
551 user specified in the User and Group directives has read, write, and
552 execute permissions on them. Those permissions had been explicitly
553 denied by creating them as "root".
555 *) Some documentation was garbled or incomplete.
557 *) When a FastCGI application can't be execl'd, the code used a
558 value of errno that may have been stomped on by intervening system
559 calls. That happened on BSD/OS 2.1, where the error_log was
560 reporting errno=25 (NOTTY) instead of the correct errno=13 (EACCES).
561 An intervening stdio call was setting errno as a side-effect, which
562 it has the right to do.
564 *) Erroneous fprintf arguments, a missing return value, an unused
565 function, missing declarations, and other problems detected by gcc
568 *) Duplicated code to create the lock file name merged into a single
569 function, closing several memory leaks.
571 *) FCGIConfig -minProcesses didn't allow a value of 0, so the last
572 FCGI app in a given dynamic class would live forever, even if it
573 hadn't been requested for weeks.
575 *) The test for whether to keep looking for dynamic app victims to
576 kill was backwards, so no dynamic apps were ever selected as
579 *) The killInterval and updateInterval were being ignored; the
580 sigsuspend() forced recalculations only when a child died,
581 instead of at the intervals specified.
583 *) When a dynamic app couldn't be started, the program SEGV'd when
584 trying to free the ipcAddrPtr twice.
586 *) Remove the dead lock file and socket when cleaning up after a
587 server whose last child has been killed, so the FastCGIHandler
588 isn't fooled into thinking there is still a process serving
591 *) Make file locking robust in the presence of signals.
593 *) Rename some badly named variables.
595 *) Fix typos in many comments.
597 *) Fix some memory and file descriptor leaks.
599 *) Make the blocking kill of a server closer to working.
601 *) More fixes to calculations in dynamic application management.
604 *** Originally from docs/README.OMI..
606 What's New: Version 2.0b1, 16 Apr 1997
608 *) Implemented a mechanism by which FastCGI applications are started by
609 the web server on the first request and continue running. Also, a
610 heuristics have been implemented to allow for dynamic killing of the
611 running FastCGI apps. The configuration options are supplied via
612 the new FCGIConfig directive, that is described in the
615 *) When performing internal redirect, since the original request's body
616 has already been read, do not allow the redirected request to think
617 that is has one [body].
619 *) More conditional compilation for OS/2.
621 *) Fixed occassional "Assertion failed: len > 0, file mod_fastcgi.c"
623 *) Fixed "failed assertion `count >= 0 && count <= bufPtr->length'"
625 *) Added bflush() call after bwrite() in DrainReqOutBuf function to
626 force some output to be written in the period of inactivity. This
627 circumvents the Apache's buffering during the server-push.
629 *) Added a header-parser function placeholder for compatibility with an
632 *) Additional checks have been placed with regard to permissions of the
633 FastCGI processes. These include the existence of the file,
634 ExecCGI and IncludesNOEXEC checks, disallowing of nph- scripts, etc.
636 *) Implemented a restart cleanup, so that no parentlesses FastCGI
637 applications are left after Apache is restarted and/or terminated.
638 This was accomplished via two independent mechanisms, where the
639 first one prevents a start of the process manager on the first
640 reading of the configuration files. The second mechanism deals away
641 from Apache's implementation of fork() (via spawn_child()) and
642 implements its own forking, thus removing any dependencies on the
643 Apache to cleanup processes during termination phase.
645 *) Removed the definition of the Sigfunc, as Apache 2.0b10 defines it
646 itself in the file conf.h
648 What's New: Version 1.4.3, 15 Jan 1997
650 *) Fixed compilation warnings for various platforms, as well as
651 conditional compilation for OS/2.
653 What's New: Version 1.4.2, 12 Dec 1996
655 *) mod_fastcgi.c is ported to Apache 1.2b. Any further development
656 will proceed under this version of Apache web server.
658 *) As the result of porting, the "include virtual" construct of SSI
659 will now work correctly using either <Location> or <Directory>
662 What's New: Version 1.4.1, 4 Dec 1996
664 *) Checks have been removed from the ScanCGIHeaders that provided
665 for the presence of both Status and Location headers as being
666 an error. Contradictory to CGI/1.1 Internet Draft, both of
667 these headers are used by the current CGI applications.
669 What's New: Version 1.4, 22 Nov 1996
671 *) Added the -port option to AppClass, allowing TCP/IP communication.
672 Added the -socket option to AppClass, allowing Unix domain
673 communication via a configurable pathname.
675 *) Added the ExternalAppClass directive, allowing TCP/IP
676 communication with remote FastCGI applications.
678 *) The handler had its own code for generating HTTP response headers;
679 now it uses Apache's. This reduces the size of the module.
680 More importantly, it fixes the bug in which "include virtual"
681 sees the HTTP response headers.
683 *) The response header parser performed very little checking.
684 Now the parser enforces the guidelines in the CGI/1.1
685 Internet-Draft: Status and Location are mutually exclusive,
686 Location can only be a response to GET or HEAD,
687 CGI response headers can't be repeated, etc. (The CGI response
688 headers are the ones the handler interprets: Status, Location,
691 *) The response header parser used to miss CGI headers
692 with no whitespace after the colon, e.g. "Status:200 OK".
694 *) The response header parser sometimes interpreted the first line
695 of content as an RFC822 continuation line.
697 *) The handler implemented a nonstandard version of Location
698 which never used internal redirects. The handler
699 now attempts to implement Location as specified in the
700 CGI/1.1 Internet-Draft. The module documentation explains
703 *) Error log entries from the response header parser were
704 pretty uninformative; they are better now. If a header is
705 malformed, the log entry includes it. If the headers are
706 unterminated rather than malformed, the log entry says that,
707 and says how many bytes were received from the app.
709 *) When the application manager forked a new process, and that
710 process ran into trouble before executing the first instruction
711 of application code, the process used to exit with status =
712 errno. This made certain configuration problems (e.g. incorrect
713 file permissions when server parent is root) quite difficult
714 to pin down. Now the failing child process opens up the error log
715 and writes an informative entry before exiting.
717 *) The module now correctly handles a slash at the end of the
718 DocumentRoot directive. This was a one-line fix.
720 What's New: Version 1.3.3, 17 Oct 1996
722 *) The module now registers its request handler under the name
723 fastcgi-script in addition to the name application/x-httpd-fcgi.
724 This was a one-line addition to the module, but had quite
725 a large impact on the documentation and sample configuration.
727 What's New: Version 1.3.2, 27 Sept 1996
729 *) On some systems (SunOS, Linux?), fopen for append has a bug
730 that strikes when two processes append to the same file.
731 This bug causes the process manager to corrupt the error log.
732 Work around the bug by calling open, then fdopen. A patch
733 to Apache 1.1.1 is also required, as described in mod_fastcgi.html.
734 (Reported by Bob Ramstad.)
736 What's New: Version 1.3.1, 17 Sept 1996
738 *) On Linux and SunOS, the Apache default user_id (-1) is not a
739 legal value of uid_t, so cast it. (Reported by Bob Ramstad,
740 Scott Langley, others.)
742 *) On some systems (Linux, some Solaris?, Irix?), connect requires
743 write access to a Unix Domain socket, so provide it. (Reported
744 by Scott Langley, freeform@wired.com, others.)
746 *) If you hit a .fcg file, but there's no AppClass defined, the
747 error should be NOT_FOUND instead of SERVER_ERROR. (Reported
750 What's New: Version 1.3, 4 Sept 1996
752 *) Module sometimes busy-waited in FastCgiDoWork. Fixed.
754 *) Module violated the Apache buff abstraction.
755 Fixed. Might now work with SSL (not tested).
756 As part of the fix, eliminated support for
757 Apache 1.0x versions.
759 *) Module failed to chmod the Unix domain listening sockets
760 it created, so protections were set according to the current
763 *) Module forked too many process manager processes: One
764 per AppClass. When the Apache parent ran as root, these
765 process manager processes ran as root. New process
766 manager is a single process (only started if AppClass is
767 used) and runs with same privileges as other children.
768 The new process manager doesn't do any polling, so
769 there's less system overhead than before.
771 *) AppClass insisted on getting at least two arguments. Fixed.
773 *) Module used setjmp/longjmp, causing compiler warnings
774 on some platforms (e.g. Linux.) The module no longer
777 *) Module created listening sockets in /tmp, where they were
778 sometimes wiped out by cleanup scripts. Added FastCgiIpcDir
779 directive to give control over the location of listening
782 *) Module wrote error log entries without a timestamp. Fixed.
784 *) AppClass directive wrote error messages to stderr in addition
785 to returning a char * message to the Apache core. Fixed.
787 What's New: Version 1.2, 3 June 1996
789 *) Ported from Apache-1.0-based code to Apache-1.1b2 internals by
792 Add version string: APACHEVERSION macro to mod_fastcgi.c
794 *) chown FastCGI socket to user_id and setuid to user_id for app
797 *) Modify GetFromStream() by having it call an OS dependent
798 function GetStreamSize(FILE *) which uses FILE internal data member.
799 Linux users might need to modify GetStreamSize().
801 What's New: Version 1.1, 10 May 1996
803 *) If you specify a non-existent executable in the AppClass directive,
804 or if the file exists and it does not have execute permission you
805 get a constant stream of error messages telling you that "program
806 terminated due to a signal".
808 *) The mod_fastcgi module should use the standard Apache error logging
809 facility instead of writing to stderr.
811 Version 1.0, 30 April 1996