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