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