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