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