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