willy tarreau | 036e1ce | 2005-12-17 13:46:33 +0100 | [diff] [blame] | 1 | ChangeLog : |
| 2 | =========== |
| 3 | |
willy tarreau | 8a86dbf | 2005-12-18 00:45:59 +0100 | [diff] [blame^] | 4 | 2003/11/09 : 1.2.0 |
| 5 | - the same as 1.1.27 + IPv6 support on the client side |
| 6 | |
willy tarreau | fe2c5c1 | 2005-12-17 14:14:34 +0100 | [diff] [blame] | 7 | 2003/10/27 : 1.1.27 |
| 8 | - the configurable HTTP health check introduced in 1.1.23 revealed a shameful |
| 9 | bug : the code still assumed that HTTP requests were the same size as the |
| 10 | original ones (22 bytes), and failed if they were not. |
| 11 | - added support for pidfiles. |
| 12 | |
willy tarreau | c58fc69 | 2005-12-17 14:13:08 +0100 | [diff] [blame] | 13 | 2003/10/22 : 1.1.26 |
| 14 | - the fix introduced in 1.1.25 for client timeouts while waiting for servers |
| 15 | broke almost all compatibility with POST requests, because the proxy |
| 16 | stopped to read anything from the client as soon as it got all of its |
| 17 | headers. |
| 18 | |
willy tarreau | c1cae63 | 2005-12-17 14:12:23 +0100 | [diff] [blame] | 19 | 2003/10/15 : 1.1.25 |
| 20 | - added the 'tcplog' option, which provides enhanced, HTTP-like logs for |
| 21 | generic TCP proxies, or lighter logs for HTTP proxies. |
| 22 | - fixed a time-out condition wrongly reported as client time-out in data |
| 23 | phase if the client timeout was lower than the connect timeout times the |
| 24 | number of retries. |
| 25 | |
willy tarreau | 197e8ec | 2005-12-17 14:10:59 +0100 | [diff] [blame] | 26 | 2003/09/21 : 1.1.24 |
| 27 | - if a client sent a full request then shut its write connection down, then |
| 28 | the request was aborted. This case was detected only when using haproxy |
| 29 | both as health-check client and as a server. |
| 30 | - if 'option httpchk' is used in a 'health' mode server, then responses will |
| 31 | change from 'OK' to 'HTTP/1.0 200 OK'. |
| 32 | - fixed a Linux-only bug in case of HTTP server health-checks, where a single |
| 33 | server response followed by a close could be ignored, and the server seen |
| 34 | as failed. |
| 35 | |
willy tarreau | eedaa9f | 2005-12-17 14:08:03 +0100 | [diff] [blame] | 36 | 2003/09/19 : 1.1.23 |
| 37 | - fixed a stupid bug introduced in 1.1.22 which caused second and subsequent |
| 38 | 'default' sections to keep previous parameters, and not initialize logs |
| 39 | correctly. |
| 40 | - fixed a second stupid bug introduced in 1.1.22 which caused configurations |
| 41 | relying on 'dispatch' mode to segfault at the first connection. |
| 42 | - 'option httpchk' now supports method, HTTP version and a few headers. |
| 43 | - now, 'option httpchk', 'cookie' and 'capture' can be specified in |
| 44 | 'defaults' section |
| 45 | |
| 46 | 2003/09/10 : 1.1.22 |
willy tarreau | a41a8b4 | 2005-12-17 14:02:24 +0100 | [diff] [blame] | 47 | - 'listen' now supports optionnal address:port-range lists |
| 48 | - 'bind' introduced to add new listen addresses |
| 49 | - fixed a bug which caused a session to be kept established on a server till |
| 50 | it timed out if the client closed during the DATA phase. |
| 51 | - the port part of each server address can now be empty to make the proxy |
| 52 | connect to the server on the same port it was connected to, be an absolute |
| 53 | unsigned number to reflect a single port (as in older versions), or an |
| 54 | explicitly signed number (+N/-N) to indicate that this offset must be |
| 55 | applied to the port the proxy was connected to, when connecting to the |
| 56 | server. |
| 57 | - the 'port' server option allows the user to specify a different |
| 58 | health-check port than the service one. It is mandatory when only relative |
| 59 | ports have been specified and check is required. By default, the checks are |
| 60 | sent to the service port. |
| 61 | - new 'defaults' section which is rather similar to 'listen' except that all |
| 62 | values are only used as default values for future 'listen' sections, until |
| 63 | a new 'defaults' resets them. At the moment, server options, regexes, |
| 64 | cookie names and captures cannot be set in the 'defaults' section. |
| 65 | |
willy tarreau | 2f6ba65 | 2005-12-17 13:57:42 +0100 | [diff] [blame] | 66 | 2003/05/06 : 1.1.21 |
| 67 | - changed the debug output format so that it now includes the session unique |
| 68 | ID followed by the instance name at the beginning of each line. |
| 69 | - in debug mode, accept now shows the client's IP and port. |
| 70 | - added one 3 small debugging scripts to search and pretty print debug output |
| 71 | - changed the default health check request to "OPTIONS /" instead of |
| 72 | "OPTIONS *" since not all servers implement the later one. |
| 73 | - "option httpchk" now accepts an optional parameter allowing the user to |
| 74 | specify and URI other than '/' during health-checks. |
| 75 | |
willy tarreau | b1ff9db | 2005-12-17 13:51:03 +0100 | [diff] [blame] | 76 | 2003/04/21 : 1.1.20 |
| 77 | - fixed two problems with time-outs, one where a server would be logged as |
| 78 | timed out during transfer that take longer to complete than the fixed |
| 79 | time-out, and one where clients were logged as timed-out during the data |
| 80 | phase because they didn't have anything to send. This sometimes caused |
| 81 | slow client connections to close too early while in fact there was no |
| 82 | problem. The proper fix would be to have a per-fd time-out with |
| 83 | conditions depending on the state of the HTTP FSM. |
| 84 | |
willy tarreau | 906b268 | 2005-12-17 13:49:52 +0100 | [diff] [blame] | 85 | 2003/04/16 : 1.1.19 |
| 86 | - haproxy was NOT RFC compliant because it was case-sensitive on HTTP |
| 87 | "Cookie:" and "Set-Cookie:" headers. This caused JVM 1.4 to fail on |
| 88 | cookie persistence because it uses "cookie:". Two memcmp() have been |
| 89 | replaced with strncasecmp(). |
| 90 | |
willy tarreau | 036e1ce | 2005-12-17 13:46:33 +0100 | [diff] [blame] | 91 | 2003/04/02 : 1.1.18 |
| 92 | - Haproxy can be compiled with PCRE regex instead of libc regex, by setting |
| 93 | REGEX=pcre on the make command line. |
| 94 | - HTTP health-checks now use "OPTIONS *" instead of "OPTIONS /". |
| 95 | - when explicit source address binding is required, it is now also used for |
| 96 | health-checks. |
| 97 | - added 'reqpass' and 'reqipass' to allow certain headers but not the request |
| 98 | itself. |
| 99 | - factored several strings to reduce binary size by about 2 kB. |
| 100 | - replaced setreuid() and setregid() with more standard setuid() and setgid(). |
| 101 | - added 4 status flags to the log line indicating who ended the connection |
| 102 | first, the sessions state, the validity of the cookie, and action taken on |
| 103 | the set-cookie header. |
| 104 | |
| 105 | 2002/10/18 : 1.1.17 |
| 106 | - add the notion of "backup" servers, which are used only when all other |
| 107 | servers are down. |
| 108 | - make Set-Cookie return "" instead of "(null)" when the server has no |
| 109 | cookie assigned (useful for backup servers). |
| 110 | - "log" now supports an optionnal level name (info, notice, err ...) above |
| 111 | which nothing is sent. |
| 112 | - replaced some strncmp() with memcmp() for better efficiency. |
| 113 | - added "capture cookie" option which logs client and/or server cookies |
| 114 | - cleaned up/down messages and dump servers states upon SIGHUP |
| 115 | - added a redirection feature for errors : "errorloc <errnum> <url>" |
| 116 | - now we won't insist on connecting to a dead server, even with a cookie, |
| 117 | unless option "persist" is specified. |
| 118 | - added HTTP/408 response for client request time-out and HTTP/50[234] for |
| 119 | server reply time-out or errors. |
| 120 | |
| 121 | 2002/09/01 : 1.1.16 |
| 122 | - implement HTTP health checks when option "httpchk" is specified. |
| 123 | |
| 124 | 2002/08/07 : 1.1.15 |
| 125 | - replaced setpgid()/setpgrp() with setsid() for better portability, because |
| 126 | setpgrp() doesn't have the same meaning under Solaris, Linux, and OpenBSD. |
| 127 | |
| 128 | 2002/07/20 : 1.1.14 |
| 129 | - added "postonly" cookie mode |
| 130 | |
| 131 | 2002/07/15 : 1.1.13 |
| 132 | - tv_diff used inverted parameters which led to negative times ! |
| 133 | |
| 134 | 2002/07/13 : 1.1.12 |
| 135 | - fixed stats monitoring, and optimized some tv_* for most common cases. |
| 136 | - replaced temporary 'newhdr' with 'trash' to reduce stack size |
| 137 | - made HTTP errors more HTML-fiendly. |
| 138 | - renamed strlcpy() to strlcpy2() because of a slightly difference between |
| 139 | their behaviour (return value), to avoid confusion. |
| 140 | - restricted HTTP messages to HTTP proxies only |
| 141 | - added a 502 message when the connection has been refused by the server, |
| 142 | to prevent clients from believing this is a zero-byte HTTP 0.9 reply. |
| 143 | - changed 'Cache-control:' from 'no-cache="set-cookie"' to 'private' when |
| 144 | inserting a cookie, because some caches (apache) don't understand it. |
| 145 | - fixed processing of server headers when client is in SHUTR state |
| 146 | |
| 147 | 2002/07/04 : |
| 148 | - automatically close fd's 0,1 and 2 when going daemon ; setpgrp() after |
| 149 | setpgid() |
| 150 | |
| 151 | 2002/06/04 : 1.1.11 |
| 152 | - fixed multi-cookie handling in client request to allow clean deletion |
| 153 | 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] | 154 | all the header. Should now be compliant to RFC2965. |
willy tarreau | 036e1ce | 2005-12-17 13:46:33 +0100 | [diff] [blame] | 155 | - added a "nocache" option to "cookie" to specify that we explicitly want |
| 156 | to add a "cache-control" header when we add a cookie. |
| 157 | It is also possible to add an "Expires: <old-date>" to keep compatibility |
| 158 | with old/broken caches. |
| 159 | |
| 160 | 2002/05/10 : 1.1.10 |
| 161 | - if a cookie is used in insert+indirect mode, it's desirable that the |
| 162 | the servers don't see it. It was not possible to remove it correctly |
| 163 | with regexps, so now it's removed automatically. |
| 164 | |
| 165 | 2002/04/19 : 1.1.9 |
| 166 | - don't use snprintf()'s return value as an end of message since it may |
| 167 | be larger. This caused bus errors and segfaults in internal libc's |
| 168 | getenv() during localtime() in send_log(). |
| 169 | - removed dead insecure send_syslog() function and all references to it. |
| 170 | - fixed warnings on Solaris due to buggy implementation of isXXXX(). |
| 171 | |
| 172 | 2002/04/18 : 1.1.8 |
| 173 | - option "dontlognull" |
| 174 | - fixed "double space" bug in config parser |
| 175 | - fixed an uninitialized server field in case of dispatch |
| 176 | with no existing server which could cause a segfault during |
| 177 | logging. |
| 178 | - the pid logged was always the father's, which was wrong for daemons. |
| 179 | - fixed wrong level "LOG_INFO" for message "proxy started". |
| 180 | |
| 181 | 2002/04/13 : |
| 182 | - http logging is now complete : |
| 183 | - ip:port, date, proxy, server |
| 184 | - req_time, conn_time, hdr_time, tot_time |
| 185 | - status, size, request |
| 186 | - source address |
| 187 | |
| 188 | 2002/04/12 : 1.1.7 |
| 189 | - added option forwardfor |
| 190 | - added reqirep, reqidel, reqiallow, reqideny, rspirep, rspidel |
| 191 | - added "log global" in "listen" section. |
| 192 | |
| 193 | 2002/04/09 : |
| 194 | - added a new "global" section : |
| 195 | - logs |
| 196 | - debug, quiet, daemon modes |
| 197 | - uid, gid, chroot, nbproc, maxconn |
| 198 | |
| 199 | 2002/04/08 : 1.1.6 |
| 200 | - regex are now chained and not limited anymore. |
| 201 | - unavailable server now returns HTTP/502. |
| 202 | - increased per-line args limit to 40 |
| 203 | - added reqallow/reqdeny to block some request on matches |
| 204 | - added HTTP 400/403 responses |
| 205 | |
| 206 | 2002/04/03 : 1.1.5 |
| 207 | - connection logging displayed incorrect source address. |
| 208 | - added proxy start/stop and server up/down log events. |
| 209 | - replaced log message short buffers with larger trash. |
| 210 | - enlarged buffer to 8 kB and replace buffer to 4 kB. |
| 211 | |
| 212 | 2002/03/25 : 1.1.4 |
| 213 | - made rise/fall/interval time configurable |
| 214 | |
| 215 | 2002/03/22 : 1.1.3 |
| 216 | - fixed a bug : cr_expire and cw_expire were inverted in CL_STSHUT[WR] |
| 217 | which could lead to loops. |
| 218 | |
| 219 | 2002/03/21 : 1.1.2 |
| 220 | - fixed a bug in buffer management where we could have a loop |
| 221 | between event_read() and process_{cli|srv} if R==BUFSIZE-MAXREWRITE. |
| 222 | => implemented an adjustable buffer limit. |
| 223 | - fixed a bug : expiration of tasks in wait queue timeout is used again, |
| 224 | and running tasks are skipped. |
| 225 | - added some debug lines for accept events. |
| 226 | - send warnings for servers up/down. |
| 227 | |
| 228 | 2002/03/12 : 1.1.1 |
| 229 | - fixed a bug in total failure handling |
| 230 | - fixed a bug in timestamp comparison within same second (tv_cmp_ms) |
| 231 | |
| 232 | 2002/03/10 : 1.1.0 |
| 233 | - fixed a few timeout bugs |
| 234 | - rearranged the task scheduler subsystem to improve performance, |
| 235 | add new tasks, and make it easier to later port to librt ; |
| 236 | - allow multiple accept() for one select() wake up ; |
| 237 | - implemented internal load balancing with basic health-check ; |
| 238 | - cookie insertion and header add/replace/delete, with better strings |
| 239 | support. |
| 240 | |
| 241 | 2002/03/08 |
| 242 | - reworked buffer handling to fix a few rewrite bugs, and |
| 243 | improve overall performance. |
| 244 | - implement the "purge" option to delete server cookies in direct mode. |
| 245 | |
| 246 | 2002/03/07 |
| 247 | - fixed some error cases where the maxfd was not decreased. |
| 248 | |
| 249 | 2002/02/26 |
| 250 | - now supports transparent proxying, at least on linux 2.4. |
| 251 | |
| 252 | 2002/02/12 |
| 253 | - soft stop works again (fixed select timeout computation). |
| 254 | - it seems that TCP proxies sometimes cannot timeout. |
| 255 | - added a "quiet" mode. |
| 256 | - enforce file descriptor limitation on socket() and accept(). |
| 257 | |
| 258 | 2001/12/30 : release of version 1.0.2 : fixed a bug in header processing |
| 259 | 2001/12/19 : release of version 1.0.1 : no MSG_NOSIGNAL on solaris |
| 260 | 2001/12/16 : release of version 1.0.0. |
| 261 | 2001/12/16 : added syslog capability for each accepted connection. |
| 262 | 2001/11/19 : corrected premature end of files and occasional SIGPIPE. |
| 263 | 2001/10/31 : added health-check type servers (mode health) which replies OK then closes. |
| 264 | 2001/10/30 : added the ability to support standard TCP proxies and HTTP proxies |
| 265 | with or without cookies (use keyword http for this). |
| 266 | 2001/09/01 : added client/server header replacing with regexps. |
| 267 | eg: |
| 268 | cliexp ^(Host:\ [^:]*).* Host:\ \1:80 |
| 269 | srvexp ^Server:\ .* Server:\ Apache |
| 270 | 2000/11/29 : first fully working release with complete FSMs and timeouts. |
| 271 | 2000/11/28 : major rewrite |
| 272 | 2000/11/26 : first write |