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