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