blob: 8c43179535758830381a512a409cee4d16073124 [file] [log] [blame]
willy tarreau036e1ce2005-12-17 13:46:33 +01001ChangeLog :
2===========
willy tarreau4302f492005-12-18 01:00:37 +01003
Willy Tarreau9c9fea42006-10-16 00:03:35 +020042006/10/15 : 1.3.3
5 - fix broken redispatch option in case the connection has already
6 been marked "in progress" (ie: nearly always).
7 - support regparm on x86 to speed up some often called functions
8 - removed a few useless calls to gettimeofday() in log functions.
9 - lots of 'const char*' cleanups
10 - turn every FD_* into functions which are faster on recent CPUs
11
Willy Tarreau690f9aa2006-09-03 11:23:06 +0200122006/09/03 : 1.3.2
13 - started the changes towards I/O completion callbacks. stream_sock* have
14 replaced event_*.
15 - added the new "reqtarpit" and "reqitarpit" protection features
16
Willy Tarreau8f2b8552006-07-09 17:11:39 +0200172006/07/09 : 1.3.1 (1.2.15)
18 - now, haproxy warns about missing timeout during startup to try to
19 eliminate all those buggy configurations.
20 - added "Content-Type: text/html" in responses wherever appropriate, as
21 suggested by Cameron Simpson.
22 - implemented "option ssl-hello-chk" to use SSLv3 CLIENT HELLO messages to
23 test server's health
24 - implemented "monitor-uri" so that haproxy can reply to a specific URI with
25 an "HTTP/1.0 200 OK" response. This is useful to validate multiple proxies
26 at once.
27
Willy Tarreaub9e98b62006-07-03 10:32:46 +0200282006/06/29 : 1.3.0
29 - exploded the whole file into multiple .c and .h. No functionnal
Willy Tarreau8f2b8552006-07-09 17:11:39 +020030 difference is expected at all.
31 - fixed a bug by which neither stats nor error messages could be returned if
32 'clitimeout' was missing.
Willy Tarreaub9e98b62006-07-03 10:32:46 +020033
willy tarreau7e6328d2006-05-21 23:26:20 +0200342006/05/21 : 1.2.14
35 - new HTML status report with the 'stats' keyword.
36 - added the 'abortonclose' option to better resist traffic surges
37 - implemented dynamic traffic regulation with the 'minconn' option
38 - show request time on denied requests
39 - definitely fixed hot reconf on OpenBSD by the use of SO_REUSEPORT
40 - now a proxy instance is allowed to run without servers, which is
41 useful to dedicate one instance to stats
42 - added lots of error counters
43 - a missing parenthesis preventd matching of cacheable cookies
44 - a missing parenthesis in poll_loop() might have caused missed events.
45
Willy TARREAU4404b7e2006-05-14 10:00:09 +0200462006/05/14 : 1.2.13.1
47 - an uninitialized field in the struct session could cause a crash when
48 the session was freed. This has been encountered on Solaris only.
49 - Solaris and OpenBSD no not support shutdown() on listening socket. Let's
50 be nice to them by performing a soft stop if pause fails.
51
willy tarreauc3a2e072006-05-13 18:51:38 +0200522006/05/13 : 1.2.13
53 - 'maxconn' server parameter to do per-server session limitation
54 - queueing to support non-blocking session limitation
55 - fixed removal of cookies for cookie-less servers such as backup servers
56 - two separate wait queues for expirable and non-expirable tasks provide
57 better performance with lots of sessions.
58 - some code cleanups and performance improvements
59 - made state dumps a bit more verbose
60 - fixed missing checks for NULL srv in dispatch mode
61 - load balancing on backup servers was not possible in source hash mode.
62 - two session flags shared the same bit, but fortunately they were not
63 compatible.
64
willy tarreauc0d4bbd2006-04-15 21:47:50 +0200652006/04/15 : 1.2.12
66 Very few changes preparing for more important changes to support per-server
67 session limitations and queueing :
68 - ignore leading empty lines in HTTP requests as suggested by RFC2616.
69 - added the 'weight' parameter to the servers, limited to 1..256. It applies
70 to roundrobin and source hash.
71 - the optional '-s' option could clobber '-st' and '-sf' if compiled in.
72
willy tarreaue0dd2692006-03-30 16:27:34 +0200732006/03/30 : 1.2.11.1
74 - under some conditions, it might have been possible that when the
75 last dead server became available, it would not have been used
76 till another one would have changed state. Could not be reproduced
77 at all, however seems possible from the code.
78
willy tarreaud2058dc2006-03-25 20:35:41 +0100792006/03/25 : 1.2.11
80 - added the '-db' command-line option to disable backgrounding.
81 - added the -sf/-st command-line arguments which are used to specify
82 a list of pids to send a FINISH or TERMINATE signal upon startup.
83 They will also be asked to release their port if a bind fails.
84 - reworked the startup mechanism to allow the sending of a signal to a list
85 of old pids if a socket cannot be bound, with a retry for a limited amount
86 of time (1 second by default).
87 - added the ability to enforce limits on memory usage.
88 - added the 'source' load-balancing algorithm which uses the source IP(v4|v6)
89 - re-architectured the server round-robin mechanism to ease integration of
90 other algorithms. It now relies on the number of active and backup servers.
91 - added a counter for the number of active and backup servers, and report
92 these numbers upon SIGHUP or state change.
93
willy tarreaubfad5742006-03-23 14:19:11 +0100942006/03/23 : 1.2.10.1
95 - while fixing the backup server round-robin "feature", a new bug was
96 introduced which could miss some backup servers.
97 - the displayed proxy name was wrong when dumping upon SIGHUP.
98
willy tarreauaaff30e2006-03-19 21:30:41 +0100992006/03/19 : 1.2.10
100 - assert.h is needed when DEBUG is defined.
101 - ENORMOUS long standing bug affecting the epoll polling system :
102 event_data is a union, not a structure !
103 - Make fd management more robust and easier to debug. Also some
104 micro-optimisations.
105 - Limit the number of consecutive accept() in multi-process mode.
106 This produces a more evenly distributed load across the processes and
107 slightly improves performance by reducing bottlenecks.
108 - Make health-checks be more regular, and faster to retry after a timeout.
109 - Fixed some messages to ease parsing of alerts.
110 - provided a patch to enable epoll on RHEL3 kernels.
111 - Separated OpenBSD build from the main Makefile into a new one.
112
willy tarreau50be0172006-03-15 19:41:19 +01001132006/03/15 : 1.2.9
114 - haproxy could not be stopped after being paused, it had to be woken up
115 first. This has been fixed.
116 - the 'ulimit-n' parameter is now optional and by default computed from
117 maxconn + the number of listeners + the number of health-checks.
118 - it is now possible to specify a maximum number of connections at build
119 time with the SYSTEM_MAXCONN define. The value set in the configuration
120 file will then be limited to this value, and only the command-line '-n'
121 option will be able to bypass it. It will prevent against accidental
122 high memory usage on small systems.
123 - RFC2616 expects that any HTTP agent accepts multi-line headers. Earlier
124 versions did not detect a line beginning with a space as the continuation
125 of previous header. It is now correct.
126 - health checks sent to servers configured with identical intervals were
127 sent in perfect synchronisation because the initial time was the same
128 for all. This could induce high load peaks when fragile servers were
129 hosting tens of instances for the same application. Now the load is
130 spread evenly across the smallest interval amongst a listener.
131 - a new 'forceclose' option was added to make the proxy close the outgoing
132 channel to the server once it has sent all its headers and the server
133 starts responding. This helps some servers which don't close upon the
134 'Connection: close' header. It implies 'option httpclose'.
135 - there was a bug in the way the backup servers were handled. They were
136 erroneously load-balanced while the doc said the opposite. Since
137 load-balanced backup servers is one of the features some people have
138 been asking for, the problem was fixed to reflect the documented
139 behaviour and a new option 'allbackups' was introduced to provide the
140 feature to those who need it.
141 - a never ending connect() could lead to a fast select() loop if its
142 timeout times the number of retransmits exceeded the server read or write
143 timeout, because the later was used to compute select()'s timeout while
144 the connection timeout was not reached.
145 - now we initialize the libc's localtime structures very early so that even
146 under OOM conditions, we can still send dated error messages without
147 segfaulting.
148 - the 'daemon' mode implies 'quiet' and disables 'verbose' because file
149 descriptors are closed.
150
willy tarreau065f1c02006-01-29 22:10:07 +01001512006/01/29 : 1.2.8
152 - fixed a nasty bug affecting poll/epoll which could return unmodified data
153 from the server to the client, and sometimes lead to memory corruption
154 crashing the process.
155 - added the new pause/play mechanism with SIGTTOU/SIGTTIN for hot-reconf.
156
1572005/12/18 : 1.2.7.1
158 - the "retries" option was ignored because connect() could not return an
159 error if the connection failed before the timeout.
160 - TCP health-checks could not detect a connection refused in poll/epoll
161 mode.
162
willy tarreaua56eca72005-12-18 01:34:42 +01001632005/11/13 : 1.2.7
willy tarreau77bc8542005-12-18 01:31:43 +0100164 - building with -DUSE_PCRE should include PCRE headers and not regex.h. At
165 least on Solaris, this caused the libc's regex primitives to be used instead
166 of PCRE, which caused trouble on group references. This is now fixed.
willy tarreaud0fb4652005-12-18 01:32:04 +0100167 - delayed the quiet mode during startup so that most of the startup alerts can
168 be displayed even in quiet mode.
169 - display an alert when a listener has no address, invalid or no port, or when
170 there are no enabled listeners upon startup.
willy tarreau4373b962005-12-18 01:32:31 +0100171 - added "static-pcre" to the list of supported regex options in the Makefile.
willy tarreau77bc8542005-12-18 01:31:43 +0100172
willy tarreaub952e1d2005-12-18 01:31:20 +01001732005/10/09 : 1.2.7rc (1.1.33rc)
174 - second batch of socklen_t changes.
175 - clean-ups from Cameron Simpson.
176 - because tv_remain() does not know about eternity, using no timeout can
177 make select() spin around a null time-out. Bug reported by Cameron Simpson.
178 - client read timeout was not properly set to eternity initialized after an
179 accept() if it was not set in the config. It remained undetected so long
180 because eternity is 0 and newly allocated pages are zeroed by the system.
181 - do not call get_original_dst() when not in transparent mode.
182 - implemented a workaround for a bug in certain epoll() implementations on
183 linux-2.4 kernels (epoll-lt <= 0.21).
184 - implemented TCP keepalive with new options : tcpka, clitcpka, srvtcpka.
185
willy tarreauc5f73ed2005-12-18 01:26:38 +01001862005/08/07 : 1.2.6
187 - clean-up patch from Alexander Lazic fixes build on Debian 3.1 (socklen_t).
188
1892005/07/06 : 1.2.6-pre5 (1.1.32)
willy tarreau0fe39652005-12-18 01:25:24 +0100190 - added the number of active sessions (proxy/process) in the logs
191
1922005/07/06 : 1.2.6-pre4 (1.1.32-pre4)
willy tarreaub1285d52005-12-18 01:20:14 +0100193 - the time-out fix introduced in 1.1.25 caused a corner case where it was
194 possible for a client to keep a connection maintained regardless of the
195 timeout if the server closed the connection during the HEADER phase,
196 while the client ignored the close request while doing nothing in the
197 other direction. This has been fixed now by ensuring that read timeouts
198 are re-armed when switching to any SHUTW state.
199
2002005/07/05 : 1.2.6-pre3 (1.1.32-pre3)
201 - enhanced error reporting in the logs. Now the proxy will precisely detect
202 various error conditions related to the system and/or process limits, and
203 generate LOG_EMERG logs indicating that a resource has been exhausted.
204 - logs will contain two new characters for the error cause : 'R' indicates
205 a resource exhausted, and 'I' indicates an internal error, though this
206 one should never happen.
207 - server connection timeouts can now be reported in the logs (sC), as well
208 as connections refused because of maxconn limitations (PC).
209
2102005/07/05 : 1.2.6-pre2 (1.1.32-pre2)
211 - new global configuration keyword "ulimit-n" may be used to raise the FD
212 limit to usable values.
213 - a warning is now displayed on startup if the FD limit is lower than the
214 configured maximum number of sockets.
215
2162005/07/05 : 1.2.6-pre1 (1.1.32-pre1)
217 - new configuration keyword "monitor-net" makes it possible to be monitored
218 by external devices which connect to the proxy without being logged nor
219 forwarded to any server. Particularly useful on generic TCPv4 relays.
220
willy tarreau5dffb602005-12-18 01:15:23 +01002212005/06/21 : 1.2.5.2
222 - fixed build on PPC where chars are unsigned by default
223
willy tarreau08dedbe2005-12-18 01:13:48 +01002242005/05/02 : 1.2.5.1
225 - dirty hack to fix a bug introduced with epoll : if we close an FD and
226 immediately reassign it to another session through a connect(), the
227 Prev{Read,Write}Events are not updated, which causes trouble detecting
228 changes, thus leading to many timeouts at high loads.
229
willy tarreau64a3cc32005-12-18 01:13:11 +01002302005/04/30 : 1.2.5 (1.1.31)
231 - changed the runtime argument to disable epoll() to '-de'
232 - changed the runtime argument to disable poll() to '-dp'
233 - added global options 'nopoll' and 'noepoll' to do the same at the
234 configuration level.
235 - added a 'linux24e' target to the Makefile for Linux 2.4 systems patched to
236 support epoll().
237 - changed default FD_SETSIZE to 65536 on Solaris (default=1024)
238 - conditionned signals redirection to #ifdef DEBUG_MEMORY
239
willy tarreau1c2ad212005-12-18 01:11:29 +01002402005/04/26 : 1.2.5-pre4
241 - made epoll() support a compile-time option : ENABLE_EPOLL
242 - provided a very little libc replacement for a possibly missing epoll()
243 implementation which can be enabled by -DUSE_MY_EPOLL
244 - implemented the poll() poller, which can be enabled with -DENABLE_POLL.
245 The equivalent runtime argument becomes '-P'. A few tests show that it
246 performs like select() with many fds, but slightly slower (certainly
247 because of the higher amount of memory involved).
248 - separated the 3 polling methods and the tasks scheduler into 4 distinct
249 functions which makes the code a lot more modular.
250 - moved some event tables to private static declarations inside the poller
251 functions.
252 - the poller functions can now initialize themselves, run, and cleanup.
253 - changed the runtime argument to enable epoll() to '-E'.
254 - removed buggy epoll_ctl() code in the client_retnclose() function. This
255 function was never meant to remove anything.
256 - fixed a typo which caused glibc to yell about a double free on exit.
257 - removed error checking after epoll_ctl(DEL) because we can never know if
258 the fd is still active or already closed.
259 - added a few entries in the makefile
260
willy tarreauad90a0c2005-12-18 01:09:15 +01002612005/04/25 : 1.2.5-pre3
262 - experimental epoll() support (use temporary '-e' argument)
263
2642005/04/24 : 1.2.5-pre2
willy tarreauc1f47532005-12-18 01:08:26 +0100265 - implemented the HTTP 303 code for error redirection. This forces the
266 browser to fetch the given URI with a GET request. The new keyword for
267 this is 'errorloc303', and a new 'errorloc302' keyword has been created
268 to make them easily distinguishable.
269 - added more controls in the parser for valid use of '\x' sequence.
270 - few fixes from Alex & Klaus
271
willy tarreauad90a0c2005-12-18 01:09:15 +01002722005/02/17 : 1.2.5-pre1
willy tarreauc1f47532005-12-18 01:08:26 +0100273 - fixed a few errors in the documentation
274
2752005/02/13
276 - do not pre-initialize unused file-descriptors before select() anymore.
277
willy tarreau12350152005-12-18 01:03:27 +01002782005/01/22 : 1.2.4
279 - merged Alexander Lazic's and Klaus Wagner's work on application
280 cookie-based persistence. Since this is the first merge, this version is
281 not intended for general use and reports are more than welcome. Some
282 documentation is really needed though.
283
willy tarreau0174f312005-12-18 01:02:42 +01002842005/01/22 : 1.2.3 (1.1.30)
285 - add an architecture guide to the documentation
286 - released without any changes
287
2882004/12/26 : 1.2.3-pre1 (1.1.30-pre1)
289 - increased default BUFSIZE to 16 kB to accept max headers of 8 kB which is
290 compatible with Apache. This limit can be configured in the makefile now.
291 Thanks to Eric Fehr for the checks.
292 - added a per-server "source" option which now makes it possible to bind to
293 a different source for each (potentially identical) server.
294 - changed cookie-based server selection slightly to allow several servers to
295 share a same cookie, thus making it possible to associate backup servers to
296 live servers and ease soft-stop for maintenance periods. (Alexander Lazic)
297 - added the cookie 'prefix' mode which makes it possible to use persistence
298 with thin clients which support only one cookie. The server name is prefixed
299 before the application cookie, and restore back.
300 - fixed the order of servers within an instance to match documentation. Now
301 the servers are *really* used in the order of their declaration. This is
302 particularly important when multiple backup servers are in use.
303
willy tarreau4302f492005-12-18 01:00:37 +01003042004/10/18 : 1.2.2 (1.1.29)
305 - fixed a bug where a TCP connection would be logged twice if the 'logasap'
306 option was enabled without the 'tcplog' option.
307 - encode_string() would use hdr_encode_map instead of the map argument.
308
3092004/08/10 : (1.1.29-pre2)
310 - the logged request is now encoded with '#XX' for unprintable characters
311 - new keywords 'capture request header' and 'capture response header' enable
312 logging of arbitrary HTTP headers in requests and responses
313 - removed "-DSOLARIS" after replacing the last inet_aton() with inet_pton()
314
willy tarreau982249e2005-12-18 00:57:06 +01003152004/06/06 : 1.2.1 (1.1.28)
316 - added the '-V' command line option to verbosely report errors even though
317 the -q or 'quiet' options are specified. This is useful with '-c'.
318 - added a Red Hat init script and a .spec from Simon Matter <simon.matter@invoca.ch>
willy tarreau036e1ce2005-12-17 13:46:33 +0100319
willy tarreau982249e2005-12-18 00:57:06 +01003202004/06/05 :
321 - added the "logasap" option which produces a log without waiting for the data
322 to be transferred from the server to the client.
323 - added the "httpclose" option which removes any "connection:" header and adds
324 "Connection: close" in both direction.
willy tarreau97f58572005-12-18 00:53:44 +0100325 - added the 'checkcache' option which blocks cacheable responses containing
326 dangerous headers, such as 'set-cookie'.
willy tarreau982249e2005-12-18 00:57:06 +0100327 - added 'rspdeny' and 'rspideny' to block certain responses to avoid sensible
328 information leak from servers.
willy tarreau25c4ea52005-12-18 00:49:49 +0100329
3302004/04/18 :
willy tarreaudd07e972005-12-18 00:48:48 +0100331 - send an EMERG log when no server is available for a given proxy
332 - added the '-c' command line option to syntactically check the
333 configuration file without starting the service.
334
willy tarreau8a86dbf2005-12-18 00:45:59 +01003352003/11/09 : 1.2.0
336 - the same as 1.1.27 + IPv6 support on the client side
337
willy tarreaufe2c5c12005-12-17 14:14:34 +01003382003/10/27 : 1.1.27
339 - the configurable HTTP health check introduced in 1.1.23 revealed a shameful
340 bug : the code still assumed that HTTP requests were the same size as the
341 original ones (22 bytes), and failed if they were not.
342 - added support for pidfiles.
343
willy tarreauc58fc692005-12-17 14:13:08 +01003442003/10/22 : 1.1.26
345 - the fix introduced in 1.1.25 for client timeouts while waiting for servers
346 broke almost all compatibility with POST requests, because the proxy
347 stopped to read anything from the client as soon as it got all of its
348 headers.
349
willy tarreauc1cae632005-12-17 14:12:23 +01003502003/10/15 : 1.1.25
351 - added the 'tcplog' option, which provides enhanced, HTTP-like logs for
352 generic TCP proxies, or lighter logs for HTTP proxies.
353 - fixed a time-out condition wrongly reported as client time-out in data
354 phase if the client timeout was lower than the connect timeout times the
355 number of retries.
356
willy tarreau197e8ec2005-12-17 14:10:59 +01003572003/09/21 : 1.1.24
358 - if a client sent a full request then shut its write connection down, then
359 the request was aborted. This case was detected only when using haproxy
360 both as health-check client and as a server.
361 - if 'option httpchk' is used in a 'health' mode server, then responses will
362 change from 'OK' to 'HTTP/1.0 200 OK'.
363 - fixed a Linux-only bug in case of HTTP server health-checks, where a single
364 server response followed by a close could be ignored, and the server seen
365 as failed.
366
willy tarreaueedaa9f2005-12-17 14:08:03 +01003672003/09/19 : 1.1.23
368 - fixed a stupid bug introduced in 1.1.22 which caused second and subsequent
369 'default' sections to keep previous parameters, and not initialize logs
370 correctly.
371 - fixed a second stupid bug introduced in 1.1.22 which caused configurations
372 relying on 'dispatch' mode to segfault at the first connection.
373 - 'option httpchk' now supports method, HTTP version and a few headers.
374 - now, 'option httpchk', 'cookie' and 'capture' can be specified in
375 'defaults' section
376
3772003/09/10 : 1.1.22
willy tarreaua41a8b42005-12-17 14:02:24 +0100378 - 'listen' now supports optionnal address:port-range lists
379 - 'bind' introduced to add new listen addresses
380 - fixed a bug which caused a session to be kept established on a server till
381 it timed out if the client closed during the DATA phase.
382 - the port part of each server address can now be empty to make the proxy
383 connect to the server on the same port it was connected to, be an absolute
384 unsigned number to reflect a single port (as in older versions), or an
385 explicitly signed number (+N/-N) to indicate that this offset must be
386 applied to the port the proxy was connected to, when connecting to the
387 server.
388 - the 'port' server option allows the user to specify a different
389 health-check port than the service one. It is mandatory when only relative
390 ports have been specified and check is required. By default, the checks are
391 sent to the service port.
392 - new 'defaults' section which is rather similar to 'listen' except that all
393 values are only used as default values for future 'listen' sections, until
394 a new 'defaults' resets them. At the moment, server options, regexes,
395 cookie names and captures cannot be set in the 'defaults' section.
396
willy tarreau2f6ba652005-12-17 13:57:42 +01003972003/05/06 : 1.1.21
398 - changed the debug output format so that it now includes the session unique
399 ID followed by the instance name at the beginning of each line.
400 - in debug mode, accept now shows the client's IP and port.
401 - added one 3 small debugging scripts to search and pretty print debug output
402 - changed the default health check request to "OPTIONS /" instead of
403 "OPTIONS *" since not all servers implement the later one.
404 - "option httpchk" now accepts an optional parameter allowing the user to
405 specify and URI other than '/' during health-checks.
406
willy tarreaub1ff9db2005-12-17 13:51:03 +01004072003/04/21 : 1.1.20
408 - fixed two problems with time-outs, one where a server would be logged as
409 timed out during transfer that take longer to complete than the fixed
410 time-out, and one where clients were logged as timed-out during the data
411 phase because they didn't have anything to send. This sometimes caused
412 slow client connections to close too early while in fact there was no
413 problem. The proper fix would be to have a per-fd time-out with
414 conditions depending on the state of the HTTP FSM.
415
willy tarreau906b2682005-12-17 13:49:52 +01004162003/04/16 : 1.1.19
417 - haproxy was NOT RFC compliant because it was case-sensitive on HTTP
418 "Cookie:" and "Set-Cookie:" headers. This caused JVM 1.4 to fail on
419 cookie persistence because it uses "cookie:". Two memcmp() have been
420 replaced with strncasecmp().
421
willy tarreau036e1ce2005-12-17 13:46:33 +01004222003/04/02 : 1.1.18
423 - Haproxy can be compiled with PCRE regex instead of libc regex, by setting
424 REGEX=pcre on the make command line.
425 - HTTP health-checks now use "OPTIONS *" instead of "OPTIONS /".
426 - when explicit source address binding is required, it is now also used for
427 health-checks.
428 - added 'reqpass' and 'reqipass' to allow certain headers but not the request
429 itself.
430 - factored several strings to reduce binary size by about 2 kB.
431 - replaced setreuid() and setregid() with more standard setuid() and setgid().
432 - added 4 status flags to the log line indicating who ended the connection
433 first, the sessions state, the validity of the cookie, and action taken on
434 the set-cookie header.
435
4362002/10/18 : 1.1.17
437 - add the notion of "backup" servers, which are used only when all other
438 servers are down.
439 - make Set-Cookie return "" instead of "(null)" when the server has no
440 cookie assigned (useful for backup servers).
441 - "log" now supports an optionnal level name (info, notice, err ...) above
442 which nothing is sent.
443 - replaced some strncmp() with memcmp() for better efficiency.
444 - added "capture cookie" option which logs client and/or server cookies
445 - cleaned up/down messages and dump servers states upon SIGHUP
446 - added a redirection feature for errors : "errorloc <errnum> <url>"
447 - now we won't insist on connecting to a dead server, even with a cookie,
448 unless option "persist" is specified.
449 - added HTTP/408 response for client request time-out and HTTP/50[234] for
450 server reply time-out or errors.
451
4522002/09/01 : 1.1.16
453 - implement HTTP health checks when option "httpchk" is specified.
454
4552002/08/07 : 1.1.15
456 - replaced setpgid()/setpgrp() with setsid() for better portability, because
457 setpgrp() doesn't have the same meaning under Solaris, Linux, and OpenBSD.
458
4592002/07/20 : 1.1.14
460 - added "postonly" cookie mode
461
4622002/07/15 : 1.1.13
463 - tv_diff used inverted parameters which led to negative times !
464
4652002/07/13 : 1.1.12
466 - fixed stats monitoring, and optimized some tv_* for most common cases.
467 - replaced temporary 'newhdr' with 'trash' to reduce stack size
468 - made HTTP errors more HTML-fiendly.
469 - renamed strlcpy() to strlcpy2() because of a slightly difference between
470 their behaviour (return value), to avoid confusion.
471 - restricted HTTP messages to HTTP proxies only
472 - added a 502 message when the connection has been refused by the server,
473 to prevent clients from believing this is a zero-byte HTTP 0.9 reply.
474 - changed 'Cache-control:' from 'no-cache="set-cookie"' to 'private' when
475 inserting a cookie, because some caches (apache) don't understand it.
476 - fixed processing of server headers when client is in SHUTR state
477
4782002/07/04 :
479 - automatically close fd's 0,1 and 2 when going daemon ; setpgrp() after
480 setpgid()
481
4822002/06/04 : 1.1.11
483 - fixed multi-cookie handling in client request to allow clean deletion
484 in insert+indirect mode. Now, only the server cookie is deleted and not
willy tarreau906b2682005-12-17 13:49:52 +0100485 all the header. Should now be compliant to RFC2965.
willy tarreau036e1ce2005-12-17 13:46:33 +0100486 - added a "nocache" option to "cookie" to specify that we explicitly want
487 to add a "cache-control" header when we add a cookie.
488 It is also possible to add an "Expires: <old-date>" to keep compatibility
489 with old/broken caches.
490
4912002/05/10 : 1.1.10
492 - if a cookie is used in insert+indirect mode, it's desirable that the
493 the servers don't see it. It was not possible to remove it correctly
494 with regexps, so now it's removed automatically.
495
4962002/04/19 : 1.1.9
497 - don't use snprintf()'s return value as an end of message since it may
498 be larger. This caused bus errors and segfaults in internal libc's
499 getenv() during localtime() in send_log().
500 - removed dead insecure send_syslog() function and all references to it.
501 - fixed warnings on Solaris due to buggy implementation of isXXXX().
502
5032002/04/18 : 1.1.8
504 - option "dontlognull"
505 - fixed "double space" bug in config parser
506 - fixed an uninitialized server field in case of dispatch
507 with no existing server which could cause a segfault during
508 logging.
509 - the pid logged was always the father's, which was wrong for daemons.
510 - fixed wrong level "LOG_INFO" for message "proxy started".
511
5122002/04/13 :
513 - http logging is now complete :
514 - ip:port, date, proxy, server
515 - req_time, conn_time, hdr_time, tot_time
516 - status, size, request
517 - source address
518
5192002/04/12 : 1.1.7
520 - added option forwardfor
521 - added reqirep, reqidel, reqiallow, reqideny, rspirep, rspidel
522 - added "log global" in "listen" section.
523
5242002/04/09 :
525 - added a new "global" section :
526 - logs
527 - debug, quiet, daemon modes
528 - uid, gid, chroot, nbproc, maxconn
529
5302002/04/08 : 1.1.6
531 - regex are now chained and not limited anymore.
532 - unavailable server now returns HTTP/502.
533 - increased per-line args limit to 40
534 - added reqallow/reqdeny to block some request on matches
535 - added HTTP 400/403 responses
536
5372002/04/03 : 1.1.5
538 - connection logging displayed incorrect source address.
539 - added proxy start/stop and server up/down log events.
540 - replaced log message short buffers with larger trash.
541 - enlarged buffer to 8 kB and replace buffer to 4 kB.
542
5432002/03/25 : 1.1.4
544 - made rise/fall/interval time configurable
545
5462002/03/22 : 1.1.3
547 - fixed a bug : cr_expire and cw_expire were inverted in CL_STSHUT[WR]
548 which could lead to loops.
549
5502002/03/21 : 1.1.2
551 - fixed a bug in buffer management where we could have a loop
552 between event_read() and process_{cli|srv} if R==BUFSIZE-MAXREWRITE.
553 => implemented an adjustable buffer limit.
554 - fixed a bug : expiration of tasks in wait queue timeout is used again,
555 and running tasks are skipped.
556 - added some debug lines for accept events.
557 - send warnings for servers up/down.
558
5592002/03/12 : 1.1.1
560 - fixed a bug in total failure handling
561 - fixed a bug in timestamp comparison within same second (tv_cmp_ms)
562
5632002/03/10 : 1.1.0
564 - fixed a few timeout bugs
565 - rearranged the task scheduler subsystem to improve performance,
566 add new tasks, and make it easier to later port to librt ;
567 - allow multiple accept() for one select() wake up ;
568 - implemented internal load balancing with basic health-check ;
569 - cookie insertion and header add/replace/delete, with better strings
570 support.
571
5722002/03/08
573 - reworked buffer handling to fix a few rewrite bugs, and
574 improve overall performance.
575 - implement the "purge" option to delete server cookies in direct mode.
576
5772002/03/07
578 - fixed some error cases where the maxfd was not decreased.
579
5802002/02/26
581 - now supports transparent proxying, at least on linux 2.4.
582
5832002/02/12
584 - soft stop works again (fixed select timeout computation).
585 - it seems that TCP proxies sometimes cannot timeout.
586 - added a "quiet" mode.
587 - enforce file descriptor limitation on socket() and accept().
588
5892001/12/30 : release of version 1.0.2 : fixed a bug in header processing
5902001/12/19 : release of version 1.0.1 : no MSG_NOSIGNAL on solaris
5912001/12/16 : release of version 1.0.0.
5922001/12/16 : added syslog capability for each accepted connection.
5932001/11/19 : corrected premature end of files and occasional SIGPIPE.
5942001/10/31 : added health-check type servers (mode health) which replies OK then closes.
5952001/10/30 : added the ability to support standard TCP proxies and HTTP proxies
596 with or without cookies (use keyword http for this).
5972001/09/01 : added client/server header replacing with regexps.
598 eg:
599 cliexp ^(Host:\ [^:]*).* Host:\ \1:80
600 srvexp ^Server:\ .* Server:\ Apache
6012000/11/29 : first fully working release with complete FSMs and timeouts.
6022000/11/28 : major rewrite
6032000/11/26 : first write