blob: 7a6db991b529093a13ec5a47b0d9ac0c2924985a [file] [log] [blame]
willy tarreau036e1ce2005-12-17 13:46:33 +01001ChangeLog :
2===========
willy tarreau4302f492005-12-18 01:00:37 +01003
willy tarreau065f1c02006-01-29 22:10:07 +010042006/01/29 : 1.2.8
5 - fixed a nasty bug affecting poll/epoll which could return unmodified data
6 from the server to the client, and sometimes lead to memory corruption
7 crashing the process.
8 - added the new pause/play mechanism with SIGTTOU/SIGTTIN for hot-reconf.
9
102005/12/18 : 1.2.7.1
11 - the "retries" option was ignored because connect() could not return an
12 error if the connection failed before the timeout.
13 - TCP health-checks could not detect a connection refused in poll/epoll
14 mode.
15
willy tarreaua56eca72005-12-18 01:34:42 +0100162005/11/13 : 1.2.7
willy tarreau77bc8542005-12-18 01:31:43 +010017 - building with -DUSE_PCRE should include PCRE headers and not regex.h. At
18 least on Solaris, this caused the libc's regex primitives to be used instead
19 of PCRE, which caused trouble on group references. This is now fixed.
willy tarreaud0fb4652005-12-18 01:32:04 +010020 - delayed the quiet mode during startup so that most of the startup alerts can
21 be displayed even in quiet mode.
22 - display an alert when a listener has no address, invalid or no port, or when
23 there are no enabled listeners upon startup.
willy tarreau4373b962005-12-18 01:32:31 +010024 - added "static-pcre" to the list of supported regex options in the Makefile.
willy tarreau77bc8542005-12-18 01:31:43 +010025
willy tarreaub952e1d2005-12-18 01:31:20 +0100262005/10/09 : 1.2.7rc (1.1.33rc)
27 - second batch of socklen_t changes.
28 - clean-ups from Cameron Simpson.
29 - because tv_remain() does not know about eternity, using no timeout can
30 make select() spin around a null time-out. Bug reported by Cameron Simpson.
31 - client read timeout was not properly set to eternity initialized after an
32 accept() if it was not set in the config. It remained undetected so long
33 because eternity is 0 and newly allocated pages are zeroed by the system.
34 - do not call get_original_dst() when not in transparent mode.
35 - implemented a workaround for a bug in certain epoll() implementations on
36 linux-2.4 kernels (epoll-lt <= 0.21).
37 - implemented TCP keepalive with new options : tcpka, clitcpka, srvtcpka.
38
willy tarreauc5f73ed2005-12-18 01:26:38 +0100392005/08/07 : 1.2.6
40 - clean-up patch from Alexander Lazic fixes build on Debian 3.1 (socklen_t).
41
422005/07/06 : 1.2.6-pre5 (1.1.32)
willy tarreau0fe39652005-12-18 01:25:24 +010043 - added the number of active sessions (proxy/process) in the logs
44
452005/07/06 : 1.2.6-pre4 (1.1.32-pre4)
willy tarreaub1285d52005-12-18 01:20:14 +010046 - the time-out fix introduced in 1.1.25 caused a corner case where it was
47 possible for a client to keep a connection maintained regardless of the
48 timeout if the server closed the connection during the HEADER phase,
49 while the client ignored the close request while doing nothing in the
50 other direction. This has been fixed now by ensuring that read timeouts
51 are re-armed when switching to any SHUTW state.
52
532005/07/05 : 1.2.6-pre3 (1.1.32-pre3)
54 - enhanced error reporting in the logs. Now the proxy will precisely detect
55 various error conditions related to the system and/or process limits, and
56 generate LOG_EMERG logs indicating that a resource has been exhausted.
57 - logs will contain two new characters for the error cause : 'R' indicates
58 a resource exhausted, and 'I' indicates an internal error, though this
59 one should never happen.
60 - server connection timeouts can now be reported in the logs (sC), as well
61 as connections refused because of maxconn limitations (PC).
62
632005/07/05 : 1.2.6-pre2 (1.1.32-pre2)
64 - new global configuration keyword "ulimit-n" may be used to raise the FD
65 limit to usable values.
66 - a warning is now displayed on startup if the FD limit is lower than the
67 configured maximum number of sockets.
68
692005/07/05 : 1.2.6-pre1 (1.1.32-pre1)
70 - new configuration keyword "monitor-net" makes it possible to be monitored
71 by external devices which connect to the proxy without being logged nor
72 forwarded to any server. Particularly useful on generic TCPv4 relays.
73
willy tarreau5dffb602005-12-18 01:15:23 +0100742005/06/21 : 1.2.5.2
75 - fixed build on PPC where chars are unsigned by default
76
willy tarreau08dedbe2005-12-18 01:13:48 +0100772005/05/02 : 1.2.5.1
78 - dirty hack to fix a bug introduced with epoll : if we close an FD and
79 immediately reassign it to another session through a connect(), the
80 Prev{Read,Write}Events are not updated, which causes trouble detecting
81 changes, thus leading to many timeouts at high loads.
82
willy tarreau64a3cc32005-12-18 01:13:11 +0100832005/04/30 : 1.2.5 (1.1.31)
84 - changed the runtime argument to disable epoll() to '-de'
85 - changed the runtime argument to disable poll() to '-dp'
86 - added global options 'nopoll' and 'noepoll' to do the same at the
87 configuration level.
88 - added a 'linux24e' target to the Makefile for Linux 2.4 systems patched to
89 support epoll().
90 - changed default FD_SETSIZE to 65536 on Solaris (default=1024)
91 - conditionned signals redirection to #ifdef DEBUG_MEMORY
92
willy tarreau1c2ad212005-12-18 01:11:29 +0100932005/04/26 : 1.2.5-pre4
94 - made epoll() support a compile-time option : ENABLE_EPOLL
95 - provided a very little libc replacement for a possibly missing epoll()
96 implementation which can be enabled by -DUSE_MY_EPOLL
97 - implemented the poll() poller, which can be enabled with -DENABLE_POLL.
98 The equivalent runtime argument becomes '-P'. A few tests show that it
99 performs like select() with many fds, but slightly slower (certainly
100 because of the higher amount of memory involved).
101 - separated the 3 polling methods and the tasks scheduler into 4 distinct
102 functions which makes the code a lot more modular.
103 - moved some event tables to private static declarations inside the poller
104 functions.
105 - the poller functions can now initialize themselves, run, and cleanup.
106 - changed the runtime argument to enable epoll() to '-E'.
107 - removed buggy epoll_ctl() code in the client_retnclose() function. This
108 function was never meant to remove anything.
109 - fixed a typo which caused glibc to yell about a double free on exit.
110 - removed error checking after epoll_ctl(DEL) because we can never know if
111 the fd is still active or already closed.
112 - added a few entries in the makefile
113
willy tarreauad90a0c2005-12-18 01:09:15 +01001142005/04/25 : 1.2.5-pre3
115 - experimental epoll() support (use temporary '-e' argument)
116
1172005/04/24 : 1.2.5-pre2
willy tarreauc1f47532005-12-18 01:08:26 +0100118 - implemented the HTTP 303 code for error redirection. This forces the
119 browser to fetch the given URI with a GET request. The new keyword for
120 this is 'errorloc303', and a new 'errorloc302' keyword has been created
121 to make them easily distinguishable.
122 - added more controls in the parser for valid use of '\x' sequence.
123 - few fixes from Alex & Klaus
124
willy tarreauad90a0c2005-12-18 01:09:15 +01001252005/02/17 : 1.2.5-pre1
willy tarreauc1f47532005-12-18 01:08:26 +0100126 - fixed a few errors in the documentation
127
1282005/02/13
129 - do not pre-initialize unused file-descriptors before select() anymore.
130
willy tarreau12350152005-12-18 01:03:27 +01001312005/01/22 : 1.2.4
132 - merged Alexander Lazic's and Klaus Wagner's work on application
133 cookie-based persistence. Since this is the first merge, this version is
134 not intended for general use and reports are more than welcome. Some
135 documentation is really needed though.
136
willy tarreau0174f312005-12-18 01:02:42 +01001372005/01/22 : 1.2.3 (1.1.30)
138 - add an architecture guide to the documentation
139 - released without any changes
140
1412004/12/26 : 1.2.3-pre1 (1.1.30-pre1)
142 - increased default BUFSIZE to 16 kB to accept max headers of 8 kB which is
143 compatible with Apache. This limit can be configured in the makefile now.
144 Thanks to Eric Fehr for the checks.
145 - added a per-server "source" option which now makes it possible to bind to
146 a different source for each (potentially identical) server.
147 - changed cookie-based server selection slightly to allow several servers to
148 share a same cookie, thus making it possible to associate backup servers to
149 live servers and ease soft-stop for maintenance periods. (Alexander Lazic)
150 - added the cookie 'prefix' mode which makes it possible to use persistence
151 with thin clients which support only one cookie. The server name is prefixed
152 before the application cookie, and restore back.
153 - fixed the order of servers within an instance to match documentation. Now
154 the servers are *really* used in the order of their declaration. This is
155 particularly important when multiple backup servers are in use.
156
willy tarreau4302f492005-12-18 01:00:37 +01001572004/10/18 : 1.2.2 (1.1.29)
158 - fixed a bug where a TCP connection would be logged twice if the 'logasap'
159 option was enabled without the 'tcplog' option.
160 - encode_string() would use hdr_encode_map instead of the map argument.
161
1622004/08/10 : (1.1.29-pre2)
163 - the logged request is now encoded with '#XX' for unprintable characters
164 - new keywords 'capture request header' and 'capture response header' enable
165 logging of arbitrary HTTP headers in requests and responses
166 - removed "-DSOLARIS" after replacing the last inet_aton() with inet_pton()
167
willy tarreau982249e2005-12-18 00:57:06 +01001682004/06/06 : 1.2.1 (1.1.28)
169 - added the '-V' command line option to verbosely report errors even though
170 the -q or 'quiet' options are specified. This is useful with '-c'.
171 - added a Red Hat init script and a .spec from Simon Matter <simon.matter@invoca.ch>
willy tarreau036e1ce2005-12-17 13:46:33 +0100172
willy tarreau982249e2005-12-18 00:57:06 +01001732004/06/05 :
174 - added the "logasap" option which produces a log without waiting for the data
175 to be transferred from the server to the client.
176 - added the "httpclose" option which removes any "connection:" header and adds
177 "Connection: close" in both direction.
willy tarreau97f58572005-12-18 00:53:44 +0100178 - added the 'checkcache' option which blocks cacheable responses containing
179 dangerous headers, such as 'set-cookie'.
willy tarreau982249e2005-12-18 00:57:06 +0100180 - added 'rspdeny' and 'rspideny' to block certain responses to avoid sensible
181 information leak from servers.
willy tarreau25c4ea52005-12-18 00:49:49 +0100182
1832004/04/18 :
willy tarreaudd07e972005-12-18 00:48:48 +0100184 - send an EMERG log when no server is available for a given proxy
185 - added the '-c' command line option to syntactically check the
186 configuration file without starting the service.
187
willy tarreau8a86dbf2005-12-18 00:45:59 +01001882003/11/09 : 1.2.0
189 - the same as 1.1.27 + IPv6 support on the client side
190
willy tarreaufe2c5c12005-12-17 14:14:34 +01001912003/10/27 : 1.1.27
192 - the configurable HTTP health check introduced in 1.1.23 revealed a shameful
193 bug : the code still assumed that HTTP requests were the same size as the
194 original ones (22 bytes), and failed if they were not.
195 - added support for pidfiles.
196
willy tarreauc58fc692005-12-17 14:13:08 +01001972003/10/22 : 1.1.26
198 - the fix introduced in 1.1.25 for client timeouts while waiting for servers
199 broke almost all compatibility with POST requests, because the proxy
200 stopped to read anything from the client as soon as it got all of its
201 headers.
202
willy tarreauc1cae632005-12-17 14:12:23 +01002032003/10/15 : 1.1.25
204 - added the 'tcplog' option, which provides enhanced, HTTP-like logs for
205 generic TCP proxies, or lighter logs for HTTP proxies.
206 - fixed a time-out condition wrongly reported as client time-out in data
207 phase if the client timeout was lower than the connect timeout times the
208 number of retries.
209
willy tarreau197e8ec2005-12-17 14:10:59 +01002102003/09/21 : 1.1.24
211 - if a client sent a full request then shut its write connection down, then
212 the request was aborted. This case was detected only when using haproxy
213 both as health-check client and as a server.
214 - if 'option httpchk' is used in a 'health' mode server, then responses will
215 change from 'OK' to 'HTTP/1.0 200 OK'.
216 - fixed a Linux-only bug in case of HTTP server health-checks, where a single
217 server response followed by a close could be ignored, and the server seen
218 as failed.
219
willy tarreaueedaa9f2005-12-17 14:08:03 +01002202003/09/19 : 1.1.23
221 - fixed a stupid bug introduced in 1.1.22 which caused second and subsequent
222 'default' sections to keep previous parameters, and not initialize logs
223 correctly.
224 - fixed a second stupid bug introduced in 1.1.22 which caused configurations
225 relying on 'dispatch' mode to segfault at the first connection.
226 - 'option httpchk' now supports method, HTTP version and a few headers.
227 - now, 'option httpchk', 'cookie' and 'capture' can be specified in
228 'defaults' section
229
2302003/09/10 : 1.1.22
willy tarreaua41a8b42005-12-17 14:02:24 +0100231 - 'listen' now supports optionnal address:port-range lists
232 - 'bind' introduced to add new listen addresses
233 - fixed a bug which caused a session to be kept established on a server till
234 it timed out if the client closed during the DATA phase.
235 - the port part of each server address can now be empty to make the proxy
236 connect to the server on the same port it was connected to, be an absolute
237 unsigned number to reflect a single port (as in older versions), or an
238 explicitly signed number (+N/-N) to indicate that this offset must be
239 applied to the port the proxy was connected to, when connecting to the
240 server.
241 - the 'port' server option allows the user to specify a different
242 health-check port than the service one. It is mandatory when only relative
243 ports have been specified and check is required. By default, the checks are
244 sent to the service port.
245 - new 'defaults' section which is rather similar to 'listen' except that all
246 values are only used as default values for future 'listen' sections, until
247 a new 'defaults' resets them. At the moment, server options, regexes,
248 cookie names and captures cannot be set in the 'defaults' section.
249
willy tarreau2f6ba652005-12-17 13:57:42 +01002502003/05/06 : 1.1.21
251 - changed the debug output format so that it now includes the session unique
252 ID followed by the instance name at the beginning of each line.
253 - in debug mode, accept now shows the client's IP and port.
254 - added one 3 small debugging scripts to search and pretty print debug output
255 - changed the default health check request to "OPTIONS /" instead of
256 "OPTIONS *" since not all servers implement the later one.
257 - "option httpchk" now accepts an optional parameter allowing the user to
258 specify and URI other than '/' during health-checks.
259
willy tarreaub1ff9db2005-12-17 13:51:03 +01002602003/04/21 : 1.1.20
261 - fixed two problems with time-outs, one where a server would be logged as
262 timed out during transfer that take longer to complete than the fixed
263 time-out, and one where clients were logged as timed-out during the data
264 phase because they didn't have anything to send. This sometimes caused
265 slow client connections to close too early while in fact there was no
266 problem. The proper fix would be to have a per-fd time-out with
267 conditions depending on the state of the HTTP FSM.
268
willy tarreau906b2682005-12-17 13:49:52 +01002692003/04/16 : 1.1.19
270 - haproxy was NOT RFC compliant because it was case-sensitive on HTTP
271 "Cookie:" and "Set-Cookie:" headers. This caused JVM 1.4 to fail on
272 cookie persistence because it uses "cookie:". Two memcmp() have been
273 replaced with strncasecmp().
274
willy tarreau036e1ce2005-12-17 13:46:33 +01002752003/04/02 : 1.1.18
276 - Haproxy can be compiled with PCRE regex instead of libc regex, by setting
277 REGEX=pcre on the make command line.
278 - HTTP health-checks now use "OPTIONS *" instead of "OPTIONS /".
279 - when explicit source address binding is required, it is now also used for
280 health-checks.
281 - added 'reqpass' and 'reqipass' to allow certain headers but not the request
282 itself.
283 - factored several strings to reduce binary size by about 2 kB.
284 - replaced setreuid() and setregid() with more standard setuid() and setgid().
285 - added 4 status flags to the log line indicating who ended the connection
286 first, the sessions state, the validity of the cookie, and action taken on
287 the set-cookie header.
288
2892002/10/18 : 1.1.17
290 - add the notion of "backup" servers, which are used only when all other
291 servers are down.
292 - make Set-Cookie return "" instead of "(null)" when the server has no
293 cookie assigned (useful for backup servers).
294 - "log" now supports an optionnal level name (info, notice, err ...) above
295 which nothing is sent.
296 - replaced some strncmp() with memcmp() for better efficiency.
297 - added "capture cookie" option which logs client and/or server cookies
298 - cleaned up/down messages and dump servers states upon SIGHUP
299 - added a redirection feature for errors : "errorloc <errnum> <url>"
300 - now we won't insist on connecting to a dead server, even with a cookie,
301 unless option "persist" is specified.
302 - added HTTP/408 response for client request time-out and HTTP/50[234] for
303 server reply time-out or errors.
304
3052002/09/01 : 1.1.16
306 - implement HTTP health checks when option "httpchk" is specified.
307
3082002/08/07 : 1.1.15
309 - replaced setpgid()/setpgrp() with setsid() for better portability, because
310 setpgrp() doesn't have the same meaning under Solaris, Linux, and OpenBSD.
311
3122002/07/20 : 1.1.14
313 - added "postonly" cookie mode
314
3152002/07/15 : 1.1.13
316 - tv_diff used inverted parameters which led to negative times !
317
3182002/07/13 : 1.1.12
319 - fixed stats monitoring, and optimized some tv_* for most common cases.
320 - replaced temporary 'newhdr' with 'trash' to reduce stack size
321 - made HTTP errors more HTML-fiendly.
322 - renamed strlcpy() to strlcpy2() because of a slightly difference between
323 their behaviour (return value), to avoid confusion.
324 - restricted HTTP messages to HTTP proxies only
325 - added a 502 message when the connection has been refused by the server,
326 to prevent clients from believing this is a zero-byte HTTP 0.9 reply.
327 - changed 'Cache-control:' from 'no-cache="set-cookie"' to 'private' when
328 inserting a cookie, because some caches (apache) don't understand it.
329 - fixed processing of server headers when client is in SHUTR state
330
3312002/07/04 :
332 - automatically close fd's 0,1 and 2 when going daemon ; setpgrp() after
333 setpgid()
334
3352002/06/04 : 1.1.11
336 - fixed multi-cookie handling in client request to allow clean deletion
337 in insert+indirect mode. Now, only the server cookie is deleted and not
willy tarreau906b2682005-12-17 13:49:52 +0100338 all the header. Should now be compliant to RFC2965.
willy tarreau036e1ce2005-12-17 13:46:33 +0100339 - added a "nocache" option to "cookie" to specify that we explicitly want
340 to add a "cache-control" header when we add a cookie.
341 It is also possible to add an "Expires: <old-date>" to keep compatibility
342 with old/broken caches.
343
3442002/05/10 : 1.1.10
345 - if a cookie is used in insert+indirect mode, it's desirable that the
346 the servers don't see it. It was not possible to remove it correctly
347 with regexps, so now it's removed automatically.
348
3492002/04/19 : 1.1.9
350 - don't use snprintf()'s return value as an end of message since it may
351 be larger. This caused bus errors and segfaults in internal libc's
352 getenv() during localtime() in send_log().
353 - removed dead insecure send_syslog() function and all references to it.
354 - fixed warnings on Solaris due to buggy implementation of isXXXX().
355
3562002/04/18 : 1.1.8
357 - option "dontlognull"
358 - fixed "double space" bug in config parser
359 - fixed an uninitialized server field in case of dispatch
360 with no existing server which could cause a segfault during
361 logging.
362 - the pid logged was always the father's, which was wrong for daemons.
363 - fixed wrong level "LOG_INFO" for message "proxy started".
364
3652002/04/13 :
366 - http logging is now complete :
367 - ip:port, date, proxy, server
368 - req_time, conn_time, hdr_time, tot_time
369 - status, size, request
370 - source address
371
3722002/04/12 : 1.1.7
373 - added option forwardfor
374 - added reqirep, reqidel, reqiallow, reqideny, rspirep, rspidel
375 - added "log global" in "listen" section.
376
3772002/04/09 :
378 - added a new "global" section :
379 - logs
380 - debug, quiet, daemon modes
381 - uid, gid, chroot, nbproc, maxconn
382
3832002/04/08 : 1.1.6
384 - regex are now chained and not limited anymore.
385 - unavailable server now returns HTTP/502.
386 - increased per-line args limit to 40
387 - added reqallow/reqdeny to block some request on matches
388 - added HTTP 400/403 responses
389
3902002/04/03 : 1.1.5
391 - connection logging displayed incorrect source address.
392 - added proxy start/stop and server up/down log events.
393 - replaced log message short buffers with larger trash.
394 - enlarged buffer to 8 kB and replace buffer to 4 kB.
395
3962002/03/25 : 1.1.4
397 - made rise/fall/interval time configurable
398
3992002/03/22 : 1.1.3
400 - fixed a bug : cr_expire and cw_expire were inverted in CL_STSHUT[WR]
401 which could lead to loops.
402
4032002/03/21 : 1.1.2
404 - fixed a bug in buffer management where we could have a loop
405 between event_read() and process_{cli|srv} if R==BUFSIZE-MAXREWRITE.
406 => implemented an adjustable buffer limit.
407 - fixed a bug : expiration of tasks in wait queue timeout is used again,
408 and running tasks are skipped.
409 - added some debug lines for accept events.
410 - send warnings for servers up/down.
411
4122002/03/12 : 1.1.1
413 - fixed a bug in total failure handling
414 - fixed a bug in timestamp comparison within same second (tv_cmp_ms)
415
4162002/03/10 : 1.1.0
417 - fixed a few timeout bugs
418 - rearranged the task scheduler subsystem to improve performance,
419 add new tasks, and make it easier to later port to librt ;
420 - allow multiple accept() for one select() wake up ;
421 - implemented internal load balancing with basic health-check ;
422 - cookie insertion and header add/replace/delete, with better strings
423 support.
424
4252002/03/08
426 - reworked buffer handling to fix a few rewrite bugs, and
427 improve overall performance.
428 - implement the "purge" option to delete server cookies in direct mode.
429
4302002/03/07
431 - fixed some error cases where the maxfd was not decreased.
432
4332002/02/26
434 - now supports transparent proxying, at least on linux 2.4.
435
4362002/02/12
437 - soft stop works again (fixed select timeout computation).
438 - it seems that TCP proxies sometimes cannot timeout.
439 - added a "quiet" mode.
440 - enforce file descriptor limitation on socket() and accept().
441
4422001/12/30 : release of version 1.0.2 : fixed a bug in header processing
4432001/12/19 : release of version 1.0.1 : no MSG_NOSIGNAL on solaris
4442001/12/16 : release of version 1.0.0.
4452001/12/16 : added syslog capability for each accepted connection.
4462001/11/19 : corrected premature end of files and occasional SIGPIPE.
4472001/10/31 : added health-check type servers (mode health) which replies OK then closes.
4482001/10/30 : added the ability to support standard TCP proxies and HTTP proxies
449 with or without cookies (use keyword http for this).
4502001/09/01 : added client/server header replacing with regexps.
451 eg:
452 cliexp ^(Host:\ [^:]*).* Host:\ \1:80
453 srvexp ^Server:\ .* Server:\ Apache
4542000/11/29 : first fully working release with complete FSMs and timeouts.
4552000/11/28 : major rewrite
4562000/11/26 : first write