blob: bbd4d6b277d3f608fd6aa09ea8f14f68fb91299a [file] [log] [blame]
willy tarreau036e1ce2005-12-17 13:46:33 +01001ChangeLog :
2===========
3
willy tarreau906b2682005-12-17 13:49:52 +010042003/04/16 : 1.1.19
5 - haproxy was NOT RFC compliant because it was case-sensitive on HTTP
6 "Cookie:" and "Set-Cookie:" headers. This caused JVM 1.4 to fail on
7 cookie persistence because it uses "cookie:". Two memcmp() have been
8 replaced with strncasecmp().
9
willy tarreau036e1ce2005-12-17 13:46:33 +0100102003/04/02 : 1.1.18
11 - Haproxy can be compiled with PCRE regex instead of libc regex, by setting
12 REGEX=pcre on the make command line.
13 - HTTP health-checks now use "OPTIONS *" instead of "OPTIONS /".
14 - when explicit source address binding is required, it is now also used for
15 health-checks.
16 - added 'reqpass' and 'reqipass' to allow certain headers but not the request
17 itself.
18 - factored several strings to reduce binary size by about 2 kB.
19 - replaced setreuid() and setregid() with more standard setuid() and setgid().
20 - added 4 status flags to the log line indicating who ended the connection
21 first, the sessions state, the validity of the cookie, and action taken on
22 the set-cookie header.
23
242002/10/18 : 1.1.17
25 - add the notion of "backup" servers, which are used only when all other
26 servers are down.
27 - make Set-Cookie return "" instead of "(null)" when the server has no
28 cookie assigned (useful for backup servers).
29 - "log" now supports an optionnal level name (info, notice, err ...) above
30 which nothing is sent.
31 - replaced some strncmp() with memcmp() for better efficiency.
32 - added "capture cookie" option which logs client and/or server cookies
33 - cleaned up/down messages and dump servers states upon SIGHUP
34 - added a redirection feature for errors : "errorloc <errnum> <url>"
35 - now we won't insist on connecting to a dead server, even with a cookie,
36 unless option "persist" is specified.
37 - added HTTP/408 response for client request time-out and HTTP/50[234] for
38 server reply time-out or errors.
39
402002/09/01 : 1.1.16
41 - implement HTTP health checks when option "httpchk" is specified.
42
432002/08/07 : 1.1.15
44 - replaced setpgid()/setpgrp() with setsid() for better portability, because
45 setpgrp() doesn't have the same meaning under Solaris, Linux, and OpenBSD.
46
472002/07/20 : 1.1.14
48 - added "postonly" cookie mode
49
502002/07/15 : 1.1.13
51 - tv_diff used inverted parameters which led to negative times !
52
532002/07/13 : 1.1.12
54 - fixed stats monitoring, and optimized some tv_* for most common cases.
55 - replaced temporary 'newhdr' with 'trash' to reduce stack size
56 - made HTTP errors more HTML-fiendly.
57 - renamed strlcpy() to strlcpy2() because of a slightly difference between
58 their behaviour (return value), to avoid confusion.
59 - restricted HTTP messages to HTTP proxies only
60 - added a 502 message when the connection has been refused by the server,
61 to prevent clients from believing this is a zero-byte HTTP 0.9 reply.
62 - changed 'Cache-control:' from 'no-cache="set-cookie"' to 'private' when
63 inserting a cookie, because some caches (apache) don't understand it.
64 - fixed processing of server headers when client is in SHUTR state
65
662002/07/04 :
67 - automatically close fd's 0,1 and 2 when going daemon ; setpgrp() after
68 setpgid()
69
702002/06/04 : 1.1.11
71 - fixed multi-cookie handling in client request to allow clean deletion
72 in insert+indirect mode. Now, only the server cookie is deleted and not
willy tarreau906b2682005-12-17 13:49:52 +010073 all the header. Should now be compliant to RFC2965.
willy tarreau036e1ce2005-12-17 13:46:33 +010074 - added a "nocache" option to "cookie" to specify that we explicitly want
75 to add a "cache-control" header when we add a cookie.
76 It is also possible to add an "Expires: <old-date>" to keep compatibility
77 with old/broken caches.
78
792002/05/10 : 1.1.10
80 - if a cookie is used in insert+indirect mode, it's desirable that the
81 the servers don't see it. It was not possible to remove it correctly
82 with regexps, so now it's removed automatically.
83
842002/04/19 : 1.1.9
85 - don't use snprintf()'s return value as an end of message since it may
86 be larger. This caused bus errors and segfaults in internal libc's
87 getenv() during localtime() in send_log().
88 - removed dead insecure send_syslog() function and all references to it.
89 - fixed warnings on Solaris due to buggy implementation of isXXXX().
90
912002/04/18 : 1.1.8
92 - option "dontlognull"
93 - fixed "double space" bug in config parser
94 - fixed an uninitialized server field in case of dispatch
95 with no existing server which could cause a segfault during
96 logging.
97 - the pid logged was always the father's, which was wrong for daemons.
98 - fixed wrong level "LOG_INFO" for message "proxy started".
99
1002002/04/13 :
101 - http logging is now complete :
102 - ip:port, date, proxy, server
103 - req_time, conn_time, hdr_time, tot_time
104 - status, size, request
105 - source address
106
1072002/04/12 : 1.1.7
108 - added option forwardfor
109 - added reqirep, reqidel, reqiallow, reqideny, rspirep, rspidel
110 - added "log global" in "listen" section.
111
1122002/04/09 :
113 - added a new "global" section :
114 - logs
115 - debug, quiet, daemon modes
116 - uid, gid, chroot, nbproc, maxconn
117
1182002/04/08 : 1.1.6
119 - regex are now chained and not limited anymore.
120 - unavailable server now returns HTTP/502.
121 - increased per-line args limit to 40
122 - added reqallow/reqdeny to block some request on matches
123 - added HTTP 400/403 responses
124
1252002/04/03 : 1.1.5
126 - connection logging displayed incorrect source address.
127 - added proxy start/stop and server up/down log events.
128 - replaced log message short buffers with larger trash.
129 - enlarged buffer to 8 kB and replace buffer to 4 kB.
130
1312002/03/25 : 1.1.4
132 - made rise/fall/interval time configurable
133
1342002/03/22 : 1.1.3
135 - fixed a bug : cr_expire and cw_expire were inverted in CL_STSHUT[WR]
136 which could lead to loops.
137
1382002/03/21 : 1.1.2
139 - fixed a bug in buffer management where we could have a loop
140 between event_read() and process_{cli|srv} if R==BUFSIZE-MAXREWRITE.
141 => implemented an adjustable buffer limit.
142 - fixed a bug : expiration of tasks in wait queue timeout is used again,
143 and running tasks are skipped.
144 - added some debug lines for accept events.
145 - send warnings for servers up/down.
146
1472002/03/12 : 1.1.1
148 - fixed a bug in total failure handling
149 - fixed a bug in timestamp comparison within same second (tv_cmp_ms)
150
1512002/03/10 : 1.1.0
152 - fixed a few timeout bugs
153 - rearranged the task scheduler subsystem to improve performance,
154 add new tasks, and make it easier to later port to librt ;
155 - allow multiple accept() for one select() wake up ;
156 - implemented internal load balancing with basic health-check ;
157 - cookie insertion and header add/replace/delete, with better strings
158 support.
159
1602002/03/08
161 - reworked buffer handling to fix a few rewrite bugs, and
162 improve overall performance.
163 - implement the "purge" option to delete server cookies in direct mode.
164
1652002/03/07
166 - fixed some error cases where the maxfd was not decreased.
167
1682002/02/26
169 - now supports transparent proxying, at least on linux 2.4.
170
1712002/02/12
172 - soft stop works again (fixed select timeout computation).
173 - it seems that TCP proxies sometimes cannot timeout.
174 - added a "quiet" mode.
175 - enforce file descriptor limitation on socket() and accept().
176
1772001/12/30 : release of version 1.0.2 : fixed a bug in header processing
1782001/12/19 : release of version 1.0.1 : no MSG_NOSIGNAL on solaris
1792001/12/16 : release of version 1.0.0.
1802001/12/16 : added syslog capability for each accepted connection.
1812001/11/19 : corrected premature end of files and occasional SIGPIPE.
1822001/10/31 : added health-check type servers (mode health) which replies OK then closes.
1832001/10/30 : added the ability to support standard TCP proxies and HTTP proxies
184 with or without cookies (use keyword http for this).
1852001/09/01 : added client/server header replacing with regexps.
186 eg:
187 cliexp ^(Host:\ [^:]*).* Host:\ \1:80
188 srvexp ^Server:\ .* Server:\ Apache
1892000/11/29 : first fully working release with complete FSMs and timeouts.
1902000/11/28 : major rewrite
1912000/11/26 : first write