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