blob: e7d7fc5f49d1b0a6d7335bd664f37abf5a4ff126 [file] [log] [blame]
willy tarreau036e1ce2005-12-17 13:46:33 +01001ChangeLog :
2===========
willy tarreau4302f492005-12-18 01:00:37 +01003
willy tarreau5dffb602005-12-18 01:15:23 +010042005/06/21 : 1.2.5.2
5 - fixed build on PPC where chars are unsigned by default
6
willy tarreau08dedbe2005-12-18 01:13:48 +010072005/05/02 : 1.2.5.1
8 - dirty hack to fix a bug introduced with epoll : if we close an FD and
9 immediately reassign it to another session through a connect(), the
10 Prev{Read,Write}Events are not updated, which causes trouble detecting
11 changes, thus leading to many timeouts at high loads.
12
willy tarreau64a3cc32005-12-18 01:13:11 +0100132005/04/30 : 1.2.5 (1.1.31)
14 - changed the runtime argument to disable epoll() to '-de'
15 - changed the runtime argument to disable poll() to '-dp'
16 - added global options 'nopoll' and 'noepoll' to do the same at the
17 configuration level.
18 - added a 'linux24e' target to the Makefile for Linux 2.4 systems patched to
19 support epoll().
20 - changed default FD_SETSIZE to 65536 on Solaris (default=1024)
21 - conditionned signals redirection to #ifdef DEBUG_MEMORY
22
willy tarreau1c2ad212005-12-18 01:11:29 +0100232005/04/26 : 1.2.5-pre4
24 - made epoll() support a compile-time option : ENABLE_EPOLL
25 - provided a very little libc replacement for a possibly missing epoll()
26 implementation which can be enabled by -DUSE_MY_EPOLL
27 - implemented the poll() poller, which can be enabled with -DENABLE_POLL.
28 The equivalent runtime argument becomes '-P'. A few tests show that it
29 performs like select() with many fds, but slightly slower (certainly
30 because of the higher amount of memory involved).
31 - separated the 3 polling methods and the tasks scheduler into 4 distinct
32 functions which makes the code a lot more modular.
33 - moved some event tables to private static declarations inside the poller
34 functions.
35 - the poller functions can now initialize themselves, run, and cleanup.
36 - changed the runtime argument to enable epoll() to '-E'.
37 - removed buggy epoll_ctl() code in the client_retnclose() function. This
38 function was never meant to remove anything.
39 - fixed a typo which caused glibc to yell about a double free on exit.
40 - removed error checking after epoll_ctl(DEL) because we can never know if
41 the fd is still active or already closed.
42 - added a few entries in the makefile
43
willy tarreauad90a0c2005-12-18 01:09:15 +0100442005/04/25 : 1.2.5-pre3
45 - experimental epoll() support (use temporary '-e' argument)
46
472005/04/24 : 1.2.5-pre2
willy tarreauc1f47532005-12-18 01:08:26 +010048 - implemented the HTTP 303 code for error redirection. This forces the
49 browser to fetch the given URI with a GET request. The new keyword for
50 this is 'errorloc303', and a new 'errorloc302' keyword has been created
51 to make them easily distinguishable.
52 - added more controls in the parser for valid use of '\x' sequence.
53 - few fixes from Alex & Klaus
54
willy tarreauad90a0c2005-12-18 01:09:15 +0100552005/02/17 : 1.2.5-pre1
willy tarreauc1f47532005-12-18 01:08:26 +010056 - fixed a few errors in the documentation
57
582005/02/13
59 - do not pre-initialize unused file-descriptors before select() anymore.
60
willy tarreau12350152005-12-18 01:03:27 +0100612005/01/22 : 1.2.4
62 - merged Alexander Lazic's and Klaus Wagner's work on application
63 cookie-based persistence. Since this is the first merge, this version is
64 not intended for general use and reports are more than welcome. Some
65 documentation is really needed though.
66
willy tarreau0174f312005-12-18 01:02:42 +0100672005/01/22 : 1.2.3 (1.1.30)
68 - add an architecture guide to the documentation
69 - released without any changes
70
712004/12/26 : 1.2.3-pre1 (1.1.30-pre1)
72 - increased default BUFSIZE to 16 kB to accept max headers of 8 kB which is
73 compatible with Apache. This limit can be configured in the makefile now.
74 Thanks to Eric Fehr for the checks.
75 - added a per-server "source" option which now makes it possible to bind to
76 a different source for each (potentially identical) server.
77 - changed cookie-based server selection slightly to allow several servers to
78 share a same cookie, thus making it possible to associate backup servers to
79 live servers and ease soft-stop for maintenance periods. (Alexander Lazic)
80 - added the cookie 'prefix' mode which makes it possible to use persistence
81 with thin clients which support only one cookie. The server name is prefixed
82 before the application cookie, and restore back.
83 - fixed the order of servers within an instance to match documentation. Now
84 the servers are *really* used in the order of their declaration. This is
85 particularly important when multiple backup servers are in use.
86
willy tarreau4302f492005-12-18 01:00:37 +0100872004/10/18 : 1.2.2 (1.1.29)
88 - fixed a bug where a TCP connection would be logged twice if the 'logasap'
89 option was enabled without the 'tcplog' option.
90 - encode_string() would use hdr_encode_map instead of the map argument.
91
922004/08/10 : (1.1.29-pre2)
93 - the logged request is now encoded with '#XX' for unprintable characters
94 - new keywords 'capture request header' and 'capture response header' enable
95 logging of arbitrary HTTP headers in requests and responses
96 - removed "-DSOLARIS" after replacing the last inet_aton() with inet_pton()
97
willy tarreau982249e2005-12-18 00:57:06 +0100982004/06/06 : 1.2.1 (1.1.28)
99 - added the '-V' command line option to verbosely report errors even though
100 the -q or 'quiet' options are specified. This is useful with '-c'.
101 - added a Red Hat init script and a .spec from Simon Matter <simon.matter@invoca.ch>
willy tarreau036e1ce2005-12-17 13:46:33 +0100102
willy tarreau982249e2005-12-18 00:57:06 +01001032004/06/05 :
104 - added the "logasap" option which produces a log without waiting for the data
105 to be transferred from the server to the client.
106 - added the "httpclose" option which removes any "connection:" header and adds
107 "Connection: close" in both direction.
willy tarreau97f58572005-12-18 00:53:44 +0100108 - added the 'checkcache' option which blocks cacheable responses containing
109 dangerous headers, such as 'set-cookie'.
willy tarreau982249e2005-12-18 00:57:06 +0100110 - added 'rspdeny' and 'rspideny' to block certain responses to avoid sensible
111 information leak from servers.
willy tarreau25c4ea52005-12-18 00:49:49 +0100112
1132004/04/18 :
willy tarreaudd07e972005-12-18 00:48:48 +0100114 - send an EMERG log when no server is available for a given proxy
115 - added the '-c' command line option to syntactically check the
116 configuration file without starting the service.
117
willy tarreau8a86dbf2005-12-18 00:45:59 +01001182003/11/09 : 1.2.0
119 - the same as 1.1.27 + IPv6 support on the client side
120
willy tarreaufe2c5c12005-12-17 14:14:34 +01001212003/10/27 : 1.1.27
122 - the configurable HTTP health check introduced in 1.1.23 revealed a shameful
123 bug : the code still assumed that HTTP requests were the same size as the
124 original ones (22 bytes), and failed if they were not.
125 - added support for pidfiles.
126
willy tarreauc58fc692005-12-17 14:13:08 +01001272003/10/22 : 1.1.26
128 - the fix introduced in 1.1.25 for client timeouts while waiting for servers
129 broke almost all compatibility with POST requests, because the proxy
130 stopped to read anything from the client as soon as it got all of its
131 headers.
132
willy tarreauc1cae632005-12-17 14:12:23 +01001332003/10/15 : 1.1.25
134 - added the 'tcplog' option, which provides enhanced, HTTP-like logs for
135 generic TCP proxies, or lighter logs for HTTP proxies.
136 - fixed a time-out condition wrongly reported as client time-out in data
137 phase if the client timeout was lower than the connect timeout times the
138 number of retries.
139
willy tarreau197e8ec2005-12-17 14:10:59 +01001402003/09/21 : 1.1.24
141 - if a client sent a full request then shut its write connection down, then
142 the request was aborted. This case was detected only when using haproxy
143 both as health-check client and as a server.
144 - if 'option httpchk' is used in a 'health' mode server, then responses will
145 change from 'OK' to 'HTTP/1.0 200 OK'.
146 - fixed a Linux-only bug in case of HTTP server health-checks, where a single
147 server response followed by a close could be ignored, and the server seen
148 as failed.
149
willy tarreaueedaa9f2005-12-17 14:08:03 +01001502003/09/19 : 1.1.23
151 - fixed a stupid bug introduced in 1.1.22 which caused second and subsequent
152 'default' sections to keep previous parameters, and not initialize logs
153 correctly.
154 - fixed a second stupid bug introduced in 1.1.22 which caused configurations
155 relying on 'dispatch' mode to segfault at the first connection.
156 - 'option httpchk' now supports method, HTTP version and a few headers.
157 - now, 'option httpchk', 'cookie' and 'capture' can be specified in
158 'defaults' section
159
1602003/09/10 : 1.1.22
willy tarreaua41a8b42005-12-17 14:02:24 +0100161 - 'listen' now supports optionnal address:port-range lists
162 - 'bind' introduced to add new listen addresses
163 - fixed a bug which caused a session to be kept established on a server till
164 it timed out if the client closed during the DATA phase.
165 - the port part of each server address can now be empty to make the proxy
166 connect to the server on the same port it was connected to, be an absolute
167 unsigned number to reflect a single port (as in older versions), or an
168 explicitly signed number (+N/-N) to indicate that this offset must be
169 applied to the port the proxy was connected to, when connecting to the
170 server.
171 - the 'port' server option allows the user to specify a different
172 health-check port than the service one. It is mandatory when only relative
173 ports have been specified and check is required. By default, the checks are
174 sent to the service port.
175 - new 'defaults' section which is rather similar to 'listen' except that all
176 values are only used as default values for future 'listen' sections, until
177 a new 'defaults' resets them. At the moment, server options, regexes,
178 cookie names and captures cannot be set in the 'defaults' section.
179
willy tarreau2f6ba652005-12-17 13:57:42 +01001802003/05/06 : 1.1.21
181 - changed the debug output format so that it now includes the session unique
182 ID followed by the instance name at the beginning of each line.
183 - in debug mode, accept now shows the client's IP and port.
184 - added one 3 small debugging scripts to search and pretty print debug output
185 - changed the default health check request to "OPTIONS /" instead of
186 "OPTIONS *" since not all servers implement the later one.
187 - "option httpchk" now accepts an optional parameter allowing the user to
188 specify and URI other than '/' during health-checks.
189
willy tarreaub1ff9db2005-12-17 13:51:03 +01001902003/04/21 : 1.1.20
191 - fixed two problems with time-outs, one where a server would be logged as
192 timed out during transfer that take longer to complete than the fixed
193 time-out, and one where clients were logged as timed-out during the data
194 phase because they didn't have anything to send. This sometimes caused
195 slow client connections to close too early while in fact there was no
196 problem. The proper fix would be to have a per-fd time-out with
197 conditions depending on the state of the HTTP FSM.
198
willy tarreau906b2682005-12-17 13:49:52 +01001992003/04/16 : 1.1.19
200 - haproxy was NOT RFC compliant because it was case-sensitive on HTTP
201 "Cookie:" and "Set-Cookie:" headers. This caused JVM 1.4 to fail on
202 cookie persistence because it uses "cookie:". Two memcmp() have been
203 replaced with strncasecmp().
204
willy tarreau036e1ce2005-12-17 13:46:33 +01002052003/04/02 : 1.1.18
206 - Haproxy can be compiled with PCRE regex instead of libc regex, by setting
207 REGEX=pcre on the make command line.
208 - HTTP health-checks now use "OPTIONS *" instead of "OPTIONS /".
209 - when explicit source address binding is required, it is now also used for
210 health-checks.
211 - added 'reqpass' and 'reqipass' to allow certain headers but not the request
212 itself.
213 - factored several strings to reduce binary size by about 2 kB.
214 - replaced setreuid() and setregid() with more standard setuid() and setgid().
215 - added 4 status flags to the log line indicating who ended the connection
216 first, the sessions state, the validity of the cookie, and action taken on
217 the set-cookie header.
218
2192002/10/18 : 1.1.17
220 - add the notion of "backup" servers, which are used only when all other
221 servers are down.
222 - make Set-Cookie return "" instead of "(null)" when the server has no
223 cookie assigned (useful for backup servers).
224 - "log" now supports an optionnal level name (info, notice, err ...) above
225 which nothing is sent.
226 - replaced some strncmp() with memcmp() for better efficiency.
227 - added "capture cookie" option which logs client and/or server cookies
228 - cleaned up/down messages and dump servers states upon SIGHUP
229 - added a redirection feature for errors : "errorloc <errnum> <url>"
230 - now we won't insist on connecting to a dead server, even with a cookie,
231 unless option "persist" is specified.
232 - added HTTP/408 response for client request time-out and HTTP/50[234] for
233 server reply time-out or errors.
234
2352002/09/01 : 1.1.16
236 - implement HTTP health checks when option "httpchk" is specified.
237
2382002/08/07 : 1.1.15
239 - replaced setpgid()/setpgrp() with setsid() for better portability, because
240 setpgrp() doesn't have the same meaning under Solaris, Linux, and OpenBSD.
241
2422002/07/20 : 1.1.14
243 - added "postonly" cookie mode
244
2452002/07/15 : 1.1.13
246 - tv_diff used inverted parameters which led to negative times !
247
2482002/07/13 : 1.1.12
249 - fixed stats monitoring, and optimized some tv_* for most common cases.
250 - replaced temporary 'newhdr' with 'trash' to reduce stack size
251 - made HTTP errors more HTML-fiendly.
252 - renamed strlcpy() to strlcpy2() because of a slightly difference between
253 their behaviour (return value), to avoid confusion.
254 - restricted HTTP messages to HTTP proxies only
255 - added a 502 message when the connection has been refused by the server,
256 to prevent clients from believing this is a zero-byte HTTP 0.9 reply.
257 - changed 'Cache-control:' from 'no-cache="set-cookie"' to 'private' when
258 inserting a cookie, because some caches (apache) don't understand it.
259 - fixed processing of server headers when client is in SHUTR state
260
2612002/07/04 :
262 - automatically close fd's 0,1 and 2 when going daemon ; setpgrp() after
263 setpgid()
264
2652002/06/04 : 1.1.11
266 - fixed multi-cookie handling in client request to allow clean deletion
267 in insert+indirect mode. Now, only the server cookie is deleted and not
willy tarreau906b2682005-12-17 13:49:52 +0100268 all the header. Should now be compliant to RFC2965.
willy tarreau036e1ce2005-12-17 13:46:33 +0100269 - added a "nocache" option to "cookie" to specify that we explicitly want
270 to add a "cache-control" header when we add a cookie.
271 It is also possible to add an "Expires: <old-date>" to keep compatibility
272 with old/broken caches.
273
2742002/05/10 : 1.1.10
275 - if a cookie is used in insert+indirect mode, it's desirable that the
276 the servers don't see it. It was not possible to remove it correctly
277 with regexps, so now it's removed automatically.
278
2792002/04/19 : 1.1.9
280 - don't use snprintf()'s return value as an end of message since it may
281 be larger. This caused bus errors and segfaults in internal libc's
282 getenv() during localtime() in send_log().
283 - removed dead insecure send_syslog() function and all references to it.
284 - fixed warnings on Solaris due to buggy implementation of isXXXX().
285
2862002/04/18 : 1.1.8
287 - option "dontlognull"
288 - fixed "double space" bug in config parser
289 - fixed an uninitialized server field in case of dispatch
290 with no existing server which could cause a segfault during
291 logging.
292 - the pid logged was always the father's, which was wrong for daemons.
293 - fixed wrong level "LOG_INFO" for message "proxy started".
294
2952002/04/13 :
296 - http logging is now complete :
297 - ip:port, date, proxy, server
298 - req_time, conn_time, hdr_time, tot_time
299 - status, size, request
300 - source address
301
3022002/04/12 : 1.1.7
303 - added option forwardfor
304 - added reqirep, reqidel, reqiallow, reqideny, rspirep, rspidel
305 - added "log global" in "listen" section.
306
3072002/04/09 :
308 - added a new "global" section :
309 - logs
310 - debug, quiet, daemon modes
311 - uid, gid, chroot, nbproc, maxconn
312
3132002/04/08 : 1.1.6
314 - regex are now chained and not limited anymore.
315 - unavailable server now returns HTTP/502.
316 - increased per-line args limit to 40
317 - added reqallow/reqdeny to block some request on matches
318 - added HTTP 400/403 responses
319
3202002/04/03 : 1.1.5
321 - connection logging displayed incorrect source address.
322 - added proxy start/stop and server up/down log events.
323 - replaced log message short buffers with larger trash.
324 - enlarged buffer to 8 kB and replace buffer to 4 kB.
325
3262002/03/25 : 1.1.4
327 - made rise/fall/interval time configurable
328
3292002/03/22 : 1.1.3
330 - fixed a bug : cr_expire and cw_expire were inverted in CL_STSHUT[WR]
331 which could lead to loops.
332
3332002/03/21 : 1.1.2
334 - fixed a bug in buffer management where we could have a loop
335 between event_read() and process_{cli|srv} if R==BUFSIZE-MAXREWRITE.
336 => implemented an adjustable buffer limit.
337 - fixed a bug : expiration of tasks in wait queue timeout is used again,
338 and running tasks are skipped.
339 - added some debug lines for accept events.
340 - send warnings for servers up/down.
341
3422002/03/12 : 1.1.1
343 - fixed a bug in total failure handling
344 - fixed a bug in timestamp comparison within same second (tv_cmp_ms)
345
3462002/03/10 : 1.1.0
347 - fixed a few timeout bugs
348 - rearranged the task scheduler subsystem to improve performance,
349 add new tasks, and make it easier to later port to librt ;
350 - allow multiple accept() for one select() wake up ;
351 - implemented internal load balancing with basic health-check ;
352 - cookie insertion and header add/replace/delete, with better strings
353 support.
354
3552002/03/08
356 - reworked buffer handling to fix a few rewrite bugs, and
357 improve overall performance.
358 - implement the "purge" option to delete server cookies in direct mode.
359
3602002/03/07
361 - fixed some error cases where the maxfd was not decreased.
362
3632002/02/26
364 - now supports transparent proxying, at least on linux 2.4.
365
3662002/02/12
367 - soft stop works again (fixed select timeout computation).
368 - it seems that TCP proxies sometimes cannot timeout.
369 - added a "quiet" mode.
370 - enforce file descriptor limitation on socket() and accept().
371
3722001/12/30 : release of version 1.0.2 : fixed a bug in header processing
3732001/12/19 : release of version 1.0.1 : no MSG_NOSIGNAL on solaris
3742001/12/16 : release of version 1.0.0.
3752001/12/16 : added syslog capability for each accepted connection.
3762001/11/19 : corrected premature end of files and occasional SIGPIPE.
3772001/10/31 : added health-check type servers (mode health) which replies OK then closes.
3782001/10/30 : added the ability to support standard TCP proxies and HTTP proxies
379 with or without cookies (use keyword http for this).
3802001/09/01 : added client/server header replacing with regexps.
381 eg:
382 cliexp ^(Host:\ [^:]*).* Host:\ \1:80
383 srvexp ^Server:\ .* Server:\ Apache
3842000/11/29 : first fully working release with complete FSMs and timeouts.
3852000/11/28 : major rewrite
3862000/11/26 : first write