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