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