/[hydra]/hydra/ChangeLog
ViewVC logotype

Contents of /hydra/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.36 - (show annotations)
Sun Oct 13 14:26:27 2002 UTC (21 years, 5 months ago) by nmav
Branch: MAIN
Changes since 1.35: +3 -0 lines
better pthread detection using gcc.

1 ** Changes from 0.0.7 to 0.0.8
2 * Better pthread detection.
3
4 ** Changes from 0.0.6 to 0.0.7 - 10/10/2002
5 * Added support for large files in 32 bit systems.
6 * Added support for SSL_* variables in CGIs.
7 * Added options in configuration file, to request and verify
8 a client certificate.
9 * The headers of HIC-CGIs are now parsed by the server.
10 * Corrected behavour in SIGHUP signal handling, to reread
11 the SSL related variables.
12 * Children and HIC threads are now killed using a signal, to avoid
13 unexpected errors, and memory leaks.
14
15 ** Changes from 0.0.5 to 0.0.6 - 03/10/2002
16 * Compatibility functions are now automatically included in hydra, if
17 they are not found by the configure script.
18 * Replaced the included scandir function, with the one in libc.
19 * Fixed code, which compiled fine with gcc 3.2, but didn't compile at
20 all, with any other compiler!
21 * Improved the MaxConnections directive semantics.
22 * Added a very primitive mime.types file in examples/ directory.
23
24 ** Changes from 0.0.4 to 0.0.5 - 02/10/2002
25 * If a requested CGI is not accesible then send 404 not found, instead
26 of trying to execute it.
27 * Corrected several stuff in HIC CGI handler. This allows Cookies,
28 POST data and Queries to work properly.
29
30 ** Changes from 0.0.3 to 0.0.4 - 30/09/2002
31 * Added support for If-Range, If-Match, If-None-Match HTTP/1.1 header
32 fields. The server also generates ETag headers for static content using
33 the last modified field of the file, and the file size. This makes
34 Hydra cache friendly.
35 * Added support for multiple HIC threads. This gives a boost to script generation
36 since they are no longer generated sequentially.
37
38 ** Changes from 0.0.2 to 0.0.3 - 28/09/2002
39 * Added support for dynamic modules that handle CGIs
40 internally (HIC). That way Hydra can run PHP.
41 * Fixes in CGI execution. CGIs that are not passed from aliasing
42 functions now properly set PATH_INFO and PATH_TRANSLATED.
43 (Needs further cleanup).
44 * Cleaned up SSL support. Now hydra can be compiled even if gnutls
45 is not available.
46
47 ** Changes from Boa/0.94.13 to Hydra/0.0.2 - 26/09/2002
48 * Added support for SSL 3.0 and TLS 1.0 protocols.
49 * Added support for multiple CPU's by making the server
50 run over a pool of threads.
51 * Changed the file caching code. The mmap() calls are cached until
52 the mmap list table is full.
53 * Added support for HTTP/1.1 ranges.
54 * Added support for hostname based virtual hosting.
55 Also changed the semantics of Alias, ScriptAlias and Redirect, to
56 take advantage of the host based virtual hosting.
57 * Added support for the TCP_CORK tcp option in linux.
58 * Cleaned up the CGI handling (gunzip, indexer are treated as CGIs)
59 * Enhanced grammar to handle 3 and 4 argument options.
60 * Added support for multiple directory indexes.
61 * Dropped support for gunzip.
62 * Use automake to create the distribution.
63
64 ** Changes from 0.94.12 to 0.94.13
65 * Change many instances of log_error_mesg + exit to DIE macro
66 * Change all instance of log_error_mesg (without exit) to WARN macro
67 * do a much better job of checking return values from malloc and
68 especially strdup.
69 * check results of calling umask and getrlimit
70 * server_s is no longer a global int
71 * check results of fork via switch instead of if (fork())
72 * check for getopt.h and include it if found
73 * remove unused #defines, and add WARN macro, and replace
74 many calls to log_error_mesg(..) with WARN macro
75 * fix bug in get_commonlog_time where time_offset calculation was
76 the opposite of what it should be ('-' and '+' were swapped)
77 * fix compatability bug with old and newer versions of flex/yacc
78 * add check for AC_FUNC_MMAP to configure.in
79 * fix really lame thinko in normalize_path, which would prepend the
80 results of earlier calls to results from later calls
81 * Add MaxConnections, a configuration directive which allows the
82 user to specify the maximum number of connections that Boa will
83 accept concurrently.
84 * add SERVER_ADDR and REQUEST_URI to environment of CGI
85 * handle SIGBUS during writes of data that has been memory mapped
86 * minor optimization in select.c that prevents DEAD requests from
87 being added to the block set
88 * fix bug in CGI environment script_name - closes sf.net bug #576725
89 * make 'status' variable local to requests.c, not local to every file
90 by forgetting to declare 'extern' in globals.h :-|
91 * make getsockname non-fatal, and do it every time because we may
92 need it for the CGI
93 * some minor refactoring optimizations in hash.c
94
95 ** Changes from 0.94.11 to 0.94.12
96 * Renamed Changelog ChangeLog, and moved up to top-level directory
97 * Next 3 items due in part or whole thanks to
98 Liam Widdowson
99 * when printf'ing a pid type, force to int, because it could be
100 something else on other platforms. Should probably change it to
101 a long, and use that.
102 * backported chroot commandline support from 0.95
103 * backported support for strdup, strstr, alphasort, and scandir
104 from 0.95
105 * Fixed src/Makefile.in -- it didn't remove index_dir.o
106 * backport create_temporary_file from 0.95
107 (instead of using tmpnam)
108 * Allow non-standard date format 31 September 2000 23:59:59 GMT
109 Patch by Landon Curt Noll
110 * Skip whitespace before HTTP/major.minor
111 Adapted patch from Landon Curt Noll
112 * open /dev/null first thing (affects chrooting)
113 * properly handle sigalrm -- use sigalrm_flag and sigalrm_run
114 instead of handling the signal in the signal handler
115 * update manpage slightly
116 * send 400 BAD Request when resource does not start with '/'
117 * add grp.h to boa.h's includes -- remove from boa.c and config.c
118 * removed duplicate header includes from boa.c, config.c, get.c,
119 ip.c, request.c, response.c
120 * factor out creating the server socket and dropping privs
121 into create_server_socket and drop_privs
122 * type all functions in boa.c (except main) as static
123 * set umask after opening /dev/null
124 * tie stdin/stdout to /dev/null before commandline parse
125 * removed old, unused chroot code
126 * move builds_needs_escape earlier in the startup
127 * move fork later in the startup
128 * type all c_set_* as static in config.c
129 * don't bother trying to change uid/gid (or error if the
130 requested uid/gid doesn't exist) if not UID 0
131 * return more appropriate error code when foo.html gives
132 access denied, but foo.html.gz gives some other error
133 (essentially report error associated with foo.html, not foo.html.gz)
134 * send NOT Implemented when an unknown method is attempted
135 * always attempt a 32k read right before close
136 (stopgap until blackhole can be merged)
137 * allow more than 1 space in logline between method, resource,
138 and http version
139 * don't use inline functions
140 * update configure.in so that autoconf 2.50 doesn't complain (as much)
141 * properly use VPATH and srcdir according to autoconf docs
142 * change curly-braces to parentheses in Makefilein
143 * use $^ instead of manually listing the dependencies in Makefile.in
144 * remove tests section in Makefile.in
145 * write tags not TAGS in Makefile.in
146 * Add gethostbyname and inet_aton to function checks
147 * Add code from 0.95 which checks for socket in -lsocket,
148 inet_aton in -lresolv, and gethost{by}name in -lnsl
149 * Also remove broken bc-based "how big is an unsigned int" checks:
150 assume minimum of 32 bits and check in escape.c at runtime.
151 * Added new file: README.chroot.solaris, based on a
152 modified version by Liam Widdowson
153 * Add check_struct_for.m4, which allows us to check a structure
154 for a member (found at http://www.gnu.org/software/ac-archive/
155 authored by Wes Hardaker
156 * Call "aclocal -I ." to rebuild aclocal.m4
157 * Using new check-struct-for-member autoconf macro, check
158 for tm_gmtoff and tm_zone in struct tm -- useful in
159 portability tests for localtime.
160 * Also check sockaddr_in for structure sin_len so we can set
161 it properly.
162 * index_dir.c (which ends up in boa_indexer) can now be compiled
163 with USE_LOCALTIME, and if so, it will report the local time
164 using the timezone name. Otherwise it uses UTC time and UTC
165 timezone designation.
166 * fix buglet in mmap_cache.c which shows up when under
167 heavy load by many different files.
168 Found and squashed by Michal Kara
169 * normalize paths on Aliases, log files, server root, dirmaker
170 This makes sure that paths are 'absolute'
171 * don't generate DOCUMENT_ROOT or SERVER_ROOT,
172 CGIs have no business knowing that information
173 * if CGI, chdir to the cgi's root path
174 Bug found by Matt Callaway
175 * remove ChrootPath and PidFile directives from the parser
176 (they aren't used anyway)
177 * keep track of maximum file descriptor in use to optimize call
178 to select()
179 * apply IPv6 patch from Jari Korva
180 * optimize keep-alive copy data routine
181 * try to use memcpy instead of strcpy/strcat in more places (alias.c)
182 * update .depend file
183 * use fcntl + GET_FL to get a file descriptor's flags, then
184 add or remove only the bits we want to set. This prevents
185 accidentally setting or unsettings bits we don't have anything
186 to do with inadvertantly. (removed, at least temporarily.
187 Show me a system where it is needed -- LRD)
188 * make sure to call FD_ZERO when we handle a restart
189 * in read.c, don't call boa_perror on read failure -- socket is
190 dead or messed up anyway, no reason to try to write to it.
191 * explicit .SUFFIXES in Makefile.in
192 * boa.objdump target added
193 * use @MAKE_SET@ (for when $(MAKE) != "make")
194 * add -Wundef -Wwrite-strings -Wredundant-decls -Winline to GCC_FLAGS
195 * change Paul Phillips' and Larry Doolittle's emails in source
196 * add --disable-debug, --enable-profile, --with-dmalloc, and --with-efence
197 * test for failed-but-return-was-successful setuid:
198 http://www.securityfocus.com/bid/1322
199 * use _exit not exit in CGI child
200 * always place new keepalive request on blocked list, we can't be
201 sure of the state of the active list, and since enqueue places
202 things at the *front* of the list, it doesn't do us much good
203 to place the new request on the active list anyway.
204 * update some Copyright statements for 2002
205 * When comparing the uri to an alias, only compare if
206 the uri length is greater than or equal to the length of the alias
207 * in init_script_alias, make sure to check for document_root before
208 trying to use it
209 * script_name is now just a copy of the request, rather
210 than some complicated variation on the pathname
211 * change the way the CGI environment is handled.
212 Now, it is allocated at request allocation time, and exists
213 throughout the life of the structure.
214 * check memory allocations, etc.. when creating the static
215 CGI environment and when making new CGI environment variables
216 * wait until process_option_end to call unescape_uri, clean_pathname,
217 and translate_uri
218 * remove debian package information
219 * move RedHat packaging information to contrib
220 * remove tests -- they weren't usable anyway
221 * add some new hash routines, and use djb2 (a variant on a
222 hash algorithm popularized by Dan J. Bernstein)
223 * a side-effect of the new hash routines is a bugfix,
224 involving negative return values from hash routines.
225 This has been fixed.
226 * add a routine, show_hash_stats, which is called with other
227 statistical output via sigalarm
228 * remove some duplicate prototypes from config.c
229 * make simple_itoa take an unsigned int
230 * try to make NOBLOCK handling in compat.h compatible with Solaris
231 * make sure to update current_time before calling signal handlers
232 * alter primary loop to make sure that select gets called even
233 when there are requests that are not blocking, and call fdset_update
234 and process_requests (when appropriate) after signal handlers but
235 before select to make sure that blocked requests are still handled
236 by select after a sighup. (Thanks to Karl Olsen)
237 * pull select loop into select.c
238 * poll server socket once per active connection
239 * add send_r_service_unavailable and use it when appropriate
240 * state uptime in seconds at normal program termination
241 * include sys/fcntl.h if it is found by configure
242 * fix POST bug where a content-length < 0 would cause Boa to
243 consume its full share of CPU until killed
244 Bug report by Landon Curt Noll
245 * add CGIPath configuration variable
246 based upon a patch by Landon Curt Noll
247 * add function boa_atoi, which wraps atoi, but does not
248 accept negative values. Additionally, it checks to make sure
249 the converted value and the original value are the same, avoiding
250 issues like "124.3" -> "123" and "123abc" -=> "123".
251 Either a value is an int or it isn't - no middle ground.
252 * use boa_atoi to convert content-length from client.
253 * add new #define - SINGLE_POST_LIMIT_DEFAULT, which defines
254 (in bytes) the *default* single_post_limit.
255 * single_post_limit is now in bytes.
256 * when adding aliases, only "normalize" paths that start
257 with "./" - this is a departure from previous behavior
258 * add "?" to the list of characters that it is safe to leave unescaped
259 * clean up Makefile.in of no-longer-pertinent comments
260 * add send_r_bad_gateway and use it
261 * tie stderr to either cgi_log_fd or devnullfd - either way
262 make sure stderr is a valid filehandle before cgi execution
263 * cgi_env is no longer allocated, it's part of the struct now
264 * fix bug in CgiPath logic
265 * when unable to allocate memory for an environment variable, log it
266 * add clear_common_env, which de-allocates the cgi_common_env stuff
267 [NEVER USE THIS outside of a terminal signal handler!]
268 * don't be so wasteful of memory in normalize_path
269 * adapted fix for alias expansion from Brieuc Jeunhomme
270
271 ** Changes from 0.94.10.1 to 0.94.11
272 * use LIBS in Makefile.in (which propagates from autoconf)
273 * properly free memory allocated by scandir in index_dir.c
274 * rearrange some header files and includes
275 * on reads and writes, don't check for -1, check for < 0
276 * include fix by William Meadows
277 for escape.c which fixes segfaults due to improper allocation
278 * above fix by William Meadows no longer needed;
279 escape.c and escape.h rewritten by Larry Doolittle -- requires
280 at least 32 bit words, but is correct (jdn's 1st attempt was faulty)
281
282 ** Changes from 0.94.10 to 0.94.10.1
283 * Actually update the SERVER_VERSION in src/defines.h
284
285 ** Changes from 0.94.9 to 0.94.10
286 * Fixes escaping rules
287 * Fixes segfault when directory_index is undefined and
288 directory needs to be generated
289 * adds dummy signal handlers for SIGUSR1 and SIGUSR2 (Closes SF #425921)
290 * Update documentation regarding mime.types (Closes Debian #69991)
291 * Make sure documentation builds (Closes Debian #110818)
292
293 ** Changes from 0.94.8.3 to 0.94.9
294 * src/Makefile.in updated to take CFLAGS, LIBS, and LDFLAGS
295 from autoconf
296 * Update escaping rules with latest RFC
297 * unescape_uri skips fragments and also stop parsing at '?'
298 * Don't accept fd over FD_SETSIZE in request.c:get_request
299 * use backported documentation from 0.95
300 * make sure POST fd gets closed even on client cancel
301 * use backported index_dir.c from 0.95
302 * support subdirectories in ScriptAlias directories
303 * add SinglePostLimit (int, in Kilobytes) to config system
304 * check for ENOSPC on body write
305 * use environment variable TMP (or "/tmp" if not available),
306 and chdir there when boa exits.
307 * add 1-time-only hack to make a 32kB read at the end of a request
308 on POST or PUT
309 * close unused file descriptors (/dev/null in boa.c, and the
310 unused part of the pipes call in cgi.c)
311 * made Makefile.in VPATH happy
312
313 ** Changes from 0.94.8.2 to 0.94.8.3
314 * Move unescape_uri *before* clean_pathname to prevent
315 encoding of / and .. in pathname
316 * wrap execution of GUNZIP in cgi.c with #ifdef GUNZIP
317 * stop parsing when fragment found in URL ('#')
318
319 ** Changes from 0.94.8.1 to 0.94.8.2
320 * close pipes[1] in child and generate HTTP_REFERER environment
321 variable in cgi.c
322 * Minor changes to the Debian package
323
324 ** Changes from 0.94.8 to 0.94.8.1
325 * Change umask call from (umask(0600)) to (umask(~0600))
326
327 ** Changes from 0.94.7 to 0.94.8
328 * Fix major thinko in temp file permissions
329 * unlink temporary file immediately following creation
330 * implement maximum # of active connections at 10 less than RLIMIT_NOFILE
331 to avoid or eliminate crashes resulting from running out of
332 file descriptors
333 * Fix thinko in POST
334
335 ** Changes from 0.94.6 to 0.94.7
336 * STDIN and STDOUT are now tied to /dev/null
337 * sets PATH_MAX to 2048 if not defined (for Hurd)
338 * core dumps (should never happen) would be located in /tmp
339 * alter behavior when select gets a EBADF
340 * add translation for the \" char -> &quot;
341 * remove use of sys_errlist. Use perror.
342 * better makedist.sh (still a stupid program though)
343
344 ** Changes from 0.94.5 to 0.94.6
345 * Removed doc++ commenting
346 * Removed erroneous debugging statments
347 * Move some stuff out of config.c (read_config_file) to boa.c
348 * Altered some of fixup_server_root()
349 * Bug fix in get.c re: automatic gunzip
350 * Added some stubs for chroot code (*not* ready yet)
351
352 ** Changes from 0.94.4 to 0.94.5
353 * Alteration of most of the comments and such for doc++ use
354 * Fixed buffer overflow in alias.c
355 * Fixed buffer underflow in util.c
356
357 ** Changes from 0.94.3 to 0.94.4
358 * Better escaping of data to user, both for HTTP headers and HTML body
359 * Proper escaping of output in CGI example perl scripts
360
361 ** Changes from 0.94.0 to 0.94.2
362 * Fixed obnoxious pipeline bug
363 * Fixed (sorta) a compilation/core bug for *BSD systems
364 Original code by Thomas Neumann
365 * Moved to GPLv2
366 * Changed manpage to section 8
367 * boa.sgml now references a .png file instead of evil .gif
368
369 ** Changes from 0.93.19.2 to 0.94.0
370 * Added UseGMT to the configuration parser
371 * util.c commonlog now logs in Apache-style commonlog time format
372 * Remove SO_SNDBUF on-start message
373
374 ** Changes from 0.93.19 to 0.93.19.2
375 * Changed to combined log (from NCSA access_log format) ala Drew Streib
376 * Altered POST cgi code to handle bug in Netscape
377 * SO_SNDBUF changes by Larry
378
379 ** Changes from 0.93.17.2 to 0.93.19 (all 0.93.18.x changes inclusive)
380 * Update of some copyright statements for 99
381 * Replacement of sprintf with strlen/memcpy or strcpy/strcat
382 wherever possible
383 * Significant rearrangement in alias.c, minor functional differences
384 (some CGI environment variables handled differently)
385 * Removal of die function. Replace with log_err_mesg and exit.
386 * initial IPv6 stubs and support
387 * Move #include "config.h" to top of boa.h where it will do some good
388 * Stubs and functions for strstr and strdup
389 * Seperation of buffer code into it's own file
390 * Significant changes to cgi.c et al (cgi_header.c, etc...)
391 * Speed patches by removal of "extra" calls to time(): Use global variable!
392 * pipelining changes... it works now.
393 * require content-length from clients (ala rfc1945)
394 * alter body_read and body_write to work more efficiently with known content-length
395 * move read(2) part to *after* parsing...
396 * added support for additional header message in send_redirect_temp
397 * change use of NO_ZERO_FILL_LENGTH to offsetof() use
398 * Remove SO_REUSEADDR setting on each client socket, Paul Saab
399 * Avoid SO_SNDBUF setting if possible
400 * Large quantities of otherwise not-insignificant changes
401
402 ** Changes from 0.93.17.2 to 0.93.17.3
403 * Put on-the-fly directories back in, stripped down from the 0.92 version
404 * Fixed DocumentRoot, ServerAdmin and ServerName null-value handling in
405 CGI environment generation
406 * Fixed argument order in Script* directives (bug introduced in 0.93.17.2)
407 * Got rid of MAX_CGI_VARS because it was not being used consistently, or
408 for that matter, at all, really.
409 * Added some more FASCIST_LOGGING to cgi.c
410 * Minor mmap patch by LRD for request.c
411
412 ** Changes from 0.93.17.1 to 0.93.17.2
413 * Added "Listen" directive for server bind address, as most recently
414 suggested by David N. Welton
415 * Put virtualhost feature in, was experimental in 0.92q
416
417 ** Changes from 0.93.16.2 to 0.93.17.1
418 * New config file parser (supposed to be more maintainable) (LRD)
419 * Support for "|command" and ":host:port" syntax for logfiles (untested) (LRD)
420
421 ** Changes for the 0.93 version **
422 * Huge quantities of changes
423 * keepalive Bugfix in 0.93.16.2 by Jon Nelson
424 report by Craig Silverstein of Google fame.
425 * patch for config.h by Craig Silverstein
426 * fixed "Parent Directory" problem in boa_indexer for title "/"
427 (Debian bug #36165)
428 * More Craig Silverstein
429 modifications, namely:
430 ErrorLog (if omitted, print to stderr)
431 DocumentRoot (if omitted, can only server user-dir files)
432 DirectoryIndex (if omitted, always use DirectoryMaker)
433 MimeTypes (if omitted, don't load -- users can use AddType instead)
434
435
436 ** Changes from v0.92o to v0.92p **
437
438 * Documented misbehavior of CGI, SIGHUP, short aliases, stale dircache.
439 * Documented how to patch signals.c for use on SunOS.
440 * Closed file descriptor leak when redirecting a bare directory URL to
441 one with an appended "/".
442 * Closed potential file descriptor leak if errors encountered generating
443 on-the-fly index.
444 * Cleaned up include file handling to be simultaneously compatible with
445 Linux, SunOS, HP-UX, and AIX.
446 * Supress message body for codes 302, 400, 403, 404, 500, and 501 if
447 incoming request is "HEAD".
448
449 ** Changes from v0.91 to v0.92o **
450 (0.92o released 27 December, 1996)
451
452 * Maintenance handover from Paul Phillips to Larry Doolittle
453 * Changed (char)NULL to '\0'
454 * Cleaned up signal handler prototypes in signals.c
455 * Modified handling of CGI environment variable PATH_TRANSLATED,
456 should now work the same as NCSA.
457 * More conservative buffer size in add_cgi_env()
458 * Build argv list for a CGI script according to spec
459 * Speedup process_header_line, eliminate potential memory leak
460 * Occasional spelling fixes and lint removal
461 * Added REMOTE_PORT env var for CGI scripts, to allow easy ident lookups
462 * Changed rfc822 time format
463 * Log timeouts and broken connections
464 * Fix mime suffix handling for filenames with multiple "."s
465 * Initialize conn->time_last, fixes bug with rapid-fire connections
466 * Performance tweak to req_write()
467 * Changed http_version from float to char[8]
468 * Rewrote on-the-fly directory generation; it works now
469 * Added user configurable dircache directory in boa.conf
470 * Fixed "simple" response bugs, including incorrect CGI handling
471 * Keepalive (HTTP/1.1 draft) support, mostly by Jon Nelson
472 * Close data_fd in 304 Not Modified flow of control
473 * Switch socket flags to non-blocking before cgi handoff
474 * Try to handle errno properly in the face of multiple errors
475 * Close fd's of all other transactions before cgi handoff
476 * Move real work for sighup and sigchld out of signal handler
477 * Fix free(req->cgi_env) in request.c
478 * Response message cleanup - better match to HTML-2.0 DTD
479 * Experimental Virtual Host code from Russ Nelson
480 * Expand buffer for escaped URI in init_get()
481 * SIGTERM triggers lame duck mode until all pending transactions complete
482 * Close and unlink temp file for POST in parent process
483
484 ** Changes from v0.90 to v0.91 **
485
486 * Cleaned up main while loop
487 * Optimized request line parsing
488 * Added state machine for header reads -- necessary to deal wtih
489 possibility of obtaining header data in multiple reads. This
490 also allows interactive use of server.
491 * Added 500/501 return codes for various conditions
492
493 ** v0.90 **
494
495 * Initial release
496

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26