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