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