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