blob: f0af36f44bcbe31f36c588c31cedb255892f3f76 [file] [log] [blame]
willy tarreau036e1ce2005-12-17 13:46:33 +01001ChangeLog :
2===========
willy tarreau4302f492005-12-18 01:00:37 +01003
willy tarreauc1f47532005-12-18 01:08:26 +010042005/04/24
5 - implemented the HTTP 303 code for error redirection. This forces the
6 browser to fetch the given URI with a GET request. The new keyword for
7 this is 'errorloc303', and a new 'errorloc302' keyword has been created
8 to make them easily distinguishable.
9 - added more controls in the parser for valid use of '\x' sequence.
10 - few fixes from Alex & Klaus
11
122005/02/17
13 - fixed a few errors in the documentation
14
152005/02/13
16 - do not pre-initialize unused file-descriptors before select() anymore.
17
willy tarreau12350152005-12-18 01:03:27 +0100182005/01/22 : 1.2.4
19 - merged Alexander Lazic's and Klaus Wagner's work on application
20 cookie-based persistence. Since this is the first merge, this version is
21 not intended for general use and reports are more than welcome. Some
22 documentation is really needed though.
23
willy tarreau0174f312005-12-18 01:02:42 +0100242005/01/22 : 1.2.3 (1.1.30)
25 - add an architecture guide to the documentation
26 - released without any changes
27
282004/12/26 : 1.2.3-pre1 (1.1.30-pre1)
29 - increased default BUFSIZE to 16 kB to accept max headers of 8 kB which is
30 compatible with Apache. This limit can be configured in the makefile now.
31 Thanks to Eric Fehr for the checks.
32 - added a per-server "source" option which now makes it possible to bind to
33 a different source for each (potentially identical) server.
34 - changed cookie-based server selection slightly to allow several servers to
35 share a same cookie, thus making it possible to associate backup servers to
36 live servers and ease soft-stop for maintenance periods. (Alexander Lazic)
37 - added the cookie 'prefix' mode which makes it possible to use persistence
38 with thin clients which support only one cookie. The server name is prefixed
39 before the application cookie, and restore back.
40 - fixed the order of servers within an instance to match documentation. Now
41 the servers are *really* used in the order of their declaration. This is
42 particularly important when multiple backup servers are in use.
43
willy tarreau4302f492005-12-18 01:00:37 +0100442004/10/18 : 1.2.2 (1.1.29)
45 - fixed a bug where a TCP connection would be logged twice if the 'logasap'
46 option was enabled without the 'tcplog' option.
47 - encode_string() would use hdr_encode_map instead of the map argument.
48
492004/08/10 : (1.1.29-pre2)
50 - the logged request is now encoded with '#XX' for unprintable characters
51 - new keywords 'capture request header' and 'capture response header' enable
52 logging of arbitrary HTTP headers in requests and responses
53 - removed "-DSOLARIS" after replacing the last inet_aton() with inet_pton()
54
willy tarreau982249e2005-12-18 00:57:06 +0100552004/06/06 : 1.2.1 (1.1.28)
56 - added the '-V' command line option to verbosely report errors even though
57 the -q or 'quiet' options are specified. This is useful with '-c'.
58 - added a Red Hat init script and a .spec from Simon Matter <simon.matter@invoca.ch>
willy tarreau036e1ce2005-12-17 13:46:33 +010059
willy tarreau982249e2005-12-18 00:57:06 +0100602004/06/05 :
61 - added the "logasap" option which produces a log without waiting for the data
62 to be transferred from the server to the client.
63 - added the "httpclose" option which removes any "connection:" header and adds
64 "Connection: close" in both direction.
willy tarreau97f58572005-12-18 00:53:44 +010065 - added the 'checkcache' option which blocks cacheable responses containing
66 dangerous headers, such as 'set-cookie'.
willy tarreau982249e2005-12-18 00:57:06 +010067 - added 'rspdeny' and 'rspideny' to block certain responses to avoid sensible
68 information leak from servers.
willy tarreau25c4ea52005-12-18 00:49:49 +010069
702004/04/18 :
willy tarreaudd07e972005-12-18 00:48:48 +010071 - send an EMERG log when no server is available for a given proxy
72 - added the '-c' command line option to syntactically check the
73 configuration file without starting the service.
74
willy tarreau8a86dbf2005-12-18 00:45:59 +0100752003/11/09 : 1.2.0
76 - the same as 1.1.27 + IPv6 support on the client side
77
willy tarreaufe2c5c12005-12-17 14:14:34 +0100782003/10/27 : 1.1.27
79 - the configurable HTTP health check introduced in 1.1.23 revealed a shameful
80 bug : the code still assumed that HTTP requests were the same size as the
81 original ones (22 bytes), and failed if they were not.
82 - added support for pidfiles.
83
willy tarreauc58fc692005-12-17 14:13:08 +0100842003/10/22 : 1.1.26
85 - the fix introduced in 1.1.25 for client timeouts while waiting for servers
86 broke almost all compatibility with POST requests, because the proxy
87 stopped to read anything from the client as soon as it got all of its
88 headers.
89
willy tarreauc1cae632005-12-17 14:12:23 +0100902003/10/15 : 1.1.25
91 - added the 'tcplog' option, which provides enhanced, HTTP-like logs for
92 generic TCP proxies, or lighter logs for HTTP proxies.
93 - fixed a time-out condition wrongly reported as client time-out in data
94 phase if the client timeout was lower than the connect timeout times the
95 number of retries.
96
willy tarreau197e8ec2005-12-17 14:10:59 +0100972003/09/21 : 1.1.24
98 - if a client sent a full request then shut its write connection down, then
99 the request was aborted. This case was detected only when using haproxy
100 both as health-check client and as a server.
101 - if 'option httpchk' is used in a 'health' mode server, then responses will
102 change from 'OK' to 'HTTP/1.0 200 OK'.
103 - fixed a Linux-only bug in case of HTTP server health-checks, where a single
104 server response followed by a close could be ignored, and the server seen
105 as failed.
106
willy tarreaueedaa9f2005-12-17 14:08:03 +01001072003/09/19 : 1.1.23
108 - fixed a stupid bug introduced in 1.1.22 which caused second and subsequent
109 'default' sections to keep previous parameters, and not initialize logs
110 correctly.
111 - fixed a second stupid bug introduced in 1.1.22 which caused configurations
112 relying on 'dispatch' mode to segfault at the first connection.
113 - 'option httpchk' now supports method, HTTP version and a few headers.
114 - now, 'option httpchk', 'cookie' and 'capture' can be specified in
115 'defaults' section
116
1172003/09/10 : 1.1.22
willy tarreaua41a8b42005-12-17 14:02:24 +0100118 - 'listen' now supports optionnal address:port-range lists
119 - 'bind' introduced to add new listen addresses
120 - fixed a bug which caused a session to be kept established on a server till
121 it timed out if the client closed during the DATA phase.
122 - the port part of each server address can now be empty to make the proxy
123 connect to the server on the same port it was connected to, be an absolute
124 unsigned number to reflect a single port (as in older versions), or an
125 explicitly signed number (+N/-N) to indicate that this offset must be
126 applied to the port the proxy was connected to, when connecting to the
127 server.
128 - the 'port' server option allows the user to specify a different
129 health-check port than the service one. It is mandatory when only relative
130 ports have been specified and check is required. By default, the checks are
131 sent to the service port.
132 - new 'defaults' section which is rather similar to 'listen' except that all
133 values are only used as default values for future 'listen' sections, until
134 a new 'defaults' resets them. At the moment, server options, regexes,
135 cookie names and captures cannot be set in the 'defaults' section.
136
willy tarreau2f6ba652005-12-17 13:57:42 +01001372003/05/06 : 1.1.21
138 - changed the debug output format so that it now includes the session unique
139 ID followed by the instance name at the beginning of each line.
140 - in debug mode, accept now shows the client's IP and port.
141 - added one 3 small debugging scripts to search and pretty print debug output
142 - changed the default health check request to "OPTIONS /" instead of
143 "OPTIONS *" since not all servers implement the later one.
144 - "option httpchk" now accepts an optional parameter allowing the user to
145 specify and URI other than '/' during health-checks.
146
willy tarreaub1ff9db2005-12-17 13:51:03 +01001472003/04/21 : 1.1.20
148 - fixed two problems with time-outs, one where a server would be logged as
149 timed out during transfer that take longer to complete than the fixed
150 time-out, and one where clients were logged as timed-out during the data
151 phase because they didn't have anything to send. This sometimes caused
152 slow client connections to close too early while in fact there was no
153 problem. The proper fix would be to have a per-fd time-out with
154 conditions depending on the state of the HTTP FSM.
155
willy tarreau906b2682005-12-17 13:49:52 +01001562003/04/16 : 1.1.19
157 - haproxy was NOT RFC compliant because it was case-sensitive on HTTP
158 "Cookie:" and "Set-Cookie:" headers. This caused JVM 1.4 to fail on
159 cookie persistence because it uses "cookie:". Two memcmp() have been
160 replaced with strncasecmp().
161
willy tarreau036e1ce2005-12-17 13:46:33 +01001622003/04/02 : 1.1.18
163 - Haproxy can be compiled with PCRE regex instead of libc regex, by setting
164 REGEX=pcre on the make command line.
165 - HTTP health-checks now use "OPTIONS *" instead of "OPTIONS /".
166 - when explicit source address binding is required, it is now also used for
167 health-checks.
168 - added 'reqpass' and 'reqipass' to allow certain headers but not the request
169 itself.
170 - factored several strings to reduce binary size by about 2 kB.
171 - replaced setreuid() and setregid() with more standard setuid() and setgid().
172 - added 4 status flags to the log line indicating who ended the connection
173 first, the sessions state, the validity of the cookie, and action taken on
174 the set-cookie header.
175
1762002/10/18 : 1.1.17
177 - add the notion of "backup" servers, which are used only when all other
178 servers are down.
179 - make Set-Cookie return "" instead of "(null)" when the server has no
180 cookie assigned (useful for backup servers).
181 - "log" now supports an optionnal level name (info, notice, err ...) above
182 which nothing is sent.
183 - replaced some strncmp() with memcmp() for better efficiency.
184 - added "capture cookie" option which logs client and/or server cookies
185 - cleaned up/down messages and dump servers states upon SIGHUP
186 - added a redirection feature for errors : "errorloc <errnum> <url>"
187 - now we won't insist on connecting to a dead server, even with a cookie,
188 unless option "persist" is specified.
189 - added HTTP/408 response for client request time-out and HTTP/50[234] for
190 server reply time-out or errors.
191
1922002/09/01 : 1.1.16
193 - implement HTTP health checks when option "httpchk" is specified.
194
1952002/08/07 : 1.1.15
196 - replaced setpgid()/setpgrp() with setsid() for better portability, because
197 setpgrp() doesn't have the same meaning under Solaris, Linux, and OpenBSD.
198
1992002/07/20 : 1.1.14
200 - added "postonly" cookie mode
201
2022002/07/15 : 1.1.13
203 - tv_diff used inverted parameters which led to negative times !
204
2052002/07/13 : 1.1.12
206 - fixed stats monitoring, and optimized some tv_* for most common cases.
207 - replaced temporary 'newhdr' with 'trash' to reduce stack size
208 - made HTTP errors more HTML-fiendly.
209 - renamed strlcpy() to strlcpy2() because of a slightly difference between
210 their behaviour (return value), to avoid confusion.
211 - restricted HTTP messages to HTTP proxies only
212 - added a 502 message when the connection has been refused by the server,
213 to prevent clients from believing this is a zero-byte HTTP 0.9 reply.
214 - changed 'Cache-control:' from 'no-cache="set-cookie"' to 'private' when
215 inserting a cookie, because some caches (apache) don't understand it.
216 - fixed processing of server headers when client is in SHUTR state
217
2182002/07/04 :
219 - automatically close fd's 0,1 and 2 when going daemon ; setpgrp() after
220 setpgid()
221
2222002/06/04 : 1.1.11
223 - fixed multi-cookie handling in client request to allow clean deletion
224 in insert+indirect mode. Now, only the server cookie is deleted and not
willy tarreau906b2682005-12-17 13:49:52 +0100225 all the header. Should now be compliant to RFC2965.
willy tarreau036e1ce2005-12-17 13:46:33 +0100226 - added a "nocache" option to "cookie" to specify that we explicitly want
227 to add a "cache-control" header when we add a cookie.
228 It is also possible to add an "Expires: <old-date>" to keep compatibility
229 with old/broken caches.
230
2312002/05/10 : 1.1.10
232 - if a cookie is used in insert+indirect mode, it's desirable that the
233 the servers don't see it. It was not possible to remove it correctly
234 with regexps, so now it's removed automatically.
235
2362002/04/19 : 1.1.9
237 - don't use snprintf()'s return value as an end of message since it may
238 be larger. This caused bus errors and segfaults in internal libc's
239 getenv() during localtime() in send_log().
240 - removed dead insecure send_syslog() function and all references to it.
241 - fixed warnings on Solaris due to buggy implementation of isXXXX().
242
2432002/04/18 : 1.1.8
244 - option "dontlognull"
245 - fixed "double space" bug in config parser
246 - fixed an uninitialized server field in case of dispatch
247 with no existing server which could cause a segfault during
248 logging.
249 - the pid logged was always the father's, which was wrong for daemons.
250 - fixed wrong level "LOG_INFO" for message "proxy started".
251
2522002/04/13 :
253 - http logging is now complete :
254 - ip:port, date, proxy, server
255 - req_time, conn_time, hdr_time, tot_time
256 - status, size, request
257 - source address
258
2592002/04/12 : 1.1.7
260 - added option forwardfor
261 - added reqirep, reqidel, reqiallow, reqideny, rspirep, rspidel
262 - added "log global" in "listen" section.
263
2642002/04/09 :
265 - added a new "global" section :
266 - logs
267 - debug, quiet, daemon modes
268 - uid, gid, chroot, nbproc, maxconn
269
2702002/04/08 : 1.1.6
271 - regex are now chained and not limited anymore.
272 - unavailable server now returns HTTP/502.
273 - increased per-line args limit to 40
274 - added reqallow/reqdeny to block some request on matches
275 - added HTTP 400/403 responses
276
2772002/04/03 : 1.1.5
278 - connection logging displayed incorrect source address.
279 - added proxy start/stop and server up/down log events.
280 - replaced log message short buffers with larger trash.
281 - enlarged buffer to 8 kB and replace buffer to 4 kB.
282
2832002/03/25 : 1.1.4
284 - made rise/fall/interval time configurable
285
2862002/03/22 : 1.1.3
287 - fixed a bug : cr_expire and cw_expire were inverted in CL_STSHUT[WR]
288 which could lead to loops.
289
2902002/03/21 : 1.1.2
291 - fixed a bug in buffer management where we could have a loop
292 between event_read() and process_{cli|srv} if R==BUFSIZE-MAXREWRITE.
293 => implemented an adjustable buffer limit.
294 - fixed a bug : expiration of tasks in wait queue timeout is used again,
295 and running tasks are skipped.
296 - added some debug lines for accept events.
297 - send warnings for servers up/down.
298
2992002/03/12 : 1.1.1
300 - fixed a bug in total failure handling
301 - fixed a bug in timestamp comparison within same second (tv_cmp_ms)
302
3032002/03/10 : 1.1.0
304 - fixed a few timeout bugs
305 - rearranged the task scheduler subsystem to improve performance,
306 add new tasks, and make it easier to later port to librt ;
307 - allow multiple accept() for one select() wake up ;
308 - implemented internal load balancing with basic health-check ;
309 - cookie insertion and header add/replace/delete, with better strings
310 support.
311
3122002/03/08
313 - reworked buffer handling to fix a few rewrite bugs, and
314 improve overall performance.
315 - implement the "purge" option to delete server cookies in direct mode.
316
3172002/03/07
318 - fixed some error cases where the maxfd was not decreased.
319
3202002/02/26
321 - now supports transparent proxying, at least on linux 2.4.
322
3232002/02/12
324 - soft stop works again (fixed select timeout computation).
325 - it seems that TCP proxies sometimes cannot timeout.
326 - added a "quiet" mode.
327 - enforce file descriptor limitation on socket() and accept().
328
3292001/12/30 : release of version 1.0.2 : fixed a bug in header processing
3302001/12/19 : release of version 1.0.1 : no MSG_NOSIGNAL on solaris
3312001/12/16 : release of version 1.0.0.
3322001/12/16 : added syslog capability for each accepted connection.
3332001/11/19 : corrected premature end of files and occasional SIGPIPE.
3342001/10/31 : added health-check type servers (mode health) which replies OK then closes.
3352001/10/30 : added the ability to support standard TCP proxies and HTTP proxies
336 with or without cookies (use keyword http for this).
3372001/09/01 : added client/server header replacing with regexps.
338 eg:
339 cliexp ^(Host:\ [^:]*).* Host:\ \1:80
340 srvexp ^Server:\ .* Server:\ Apache
3412000/11/29 : first fully working release with complete FSMs and timeouts.
3422000/11/28 : major rewrite
3432000/11/26 : first write