]> git.ipfire.org Git - thirdparty/squid.git/blame - ChangeLog
2.1 merge
[thirdparty/squid.git] / ChangeLog
CommitLineData
8f897f34 1Changes to Squid-2.1 ():
2
3 - Changed delayPoolsUpdate() to be called as an event.
4 - Replaced comm_select FD scanning loops with global fd_set
5 structures. Inspired by Jeff Mogul's patch for squid 1.1.
9e1559ea 6 - Moved functions common to dns.c, redirect.c, authenticate.c,
7 ipcache.c, and fqdncache.c into helper.c.
0753aa46 8 - Changed storeClientCopy2() so that it keeps sending the remainder
9 of a STORE_ABORTED request, instead of cutting off the client as
10 soon as the object becomes aborted.
f0538986 11 - Fixed combined ipf-transparent proxy and a local http-accelerator
12 operation (Quinton Dolan).
13 - Rewrote base64_decode.c because of potential buffer overrun
14 bugs.
912432d8 15 - Configurable handling of whitespace in request URI's.
16 See 'uri_whitespace' in squid.conf.
e33ec474 17 - Added ability to generate HTTP redirect messages from
18 the redirector output by prepending "301:" or "302:" to the
19 new url. See FAQ 4.16 for more details.
829a9357 20 - Eliminated refreshWhen() which was out-of-sync with refreshCheck()
21 potentially causing under-utilized cache digests
22 - Maintain refreshCheck statistics on per-protocol basis so we
23 can tell why ICP or Digests return too many misses, etc.
c68e9c6b 24 - Fixed delay_pools.c class2/class3 typo (Simon Woods).
25 - Changed squid.conf's default access controls to deny all
26 HTTP requests. Admins must write ACL rules to specifically
27 allow their local clients.
28 - Patched French error messages (Mathias HERBERTS).
29 - NextStep porting fixes by Mike Laster:
30 - use xstrdup() in cf_gen.c
31 - check for putenv() in configure
32 - #define S_ISDIR macro
33 - Added --disable-poll configure option (Henrik Nordstrom).
34 - Fixed internal URL hostname case bugs (Henrik Nordstrom).
35 - Patched ftp.c so we never cache autenticated FTP requests
36 (Henrik Nordstrom).
37 - Fixed FTP authentication. We tried to unescape authentication
38 given by basic authentication which is not URL escaped
39 (Henrik Nordstrom).
40 - Fixed HTTP version for common logfile format (Henrik Nordstrom).
41 - Added 'redirect_rewrites_host_header' option to disable rewriting
42 of Host header for redirector responses (Henrik Nordstrom).
43 - Allow semi-customized error message signatures (Henrik Nordstrom).
44 - Fixed bug with errors for unsupported requests (Henrik Nordstrom).
45 - Fixed handling of blank lines in ACL input files (Henrik
46 Nordstrom).
47 - Changed proxy_auth ACL type to consist of a list of valid
48 users. REQUIRED == any (same as ident ACL). ACL type user
49 changed to ident since this is what it really is.
50 (Henrik Nordstrom).
51 - Fixed long URL bugs; make sure 'log_uri' never exceeds
52 MAX_URL bytes.
53 - Allow comments in external ACL files (Gerhard Wiesinger).
54 - Added 'range_offset_limit' configuration option. Requests
55 with ranges that start after this value will be passed
56 on unmodified, and Squid will not cache the response
57 (Henrik Nordstrom).
58 - Added Client HTTP Hit byte counters to 'counters' output
59 (Douglas Swarin).
60 - Got Squid to compile with --enable-async-io on FreeBSD.
61 - Fixed infinite loop bug for cachemgr 'config' option.
62 - Fixed cachability bugs for replies with Pragma: no-cache.
63 - Made content-type multipart/x-mixed-replace uncachable.
64 - Y2K fix for parsing dates in "Wed Jun 9 01:29:59 1993 GMT"
65 format (Richard Kettlewell).
66 - Fixed passing -s option to dnsserver processes (Alvaro Jose
67 Fernandez Lago).
68 - Changed proxy_auth to work on internal objects and when in
69 accelerator mode. (Henrik Nordstrom)
70 - Added login=user:password option to cache_peer directive to
71 be used from a dial-up cache where the parent requires proxy
72 authentication. (Henrik Nordstrom)
73 - If you want to "auto-login", then use a URL on the form
74 http://username:password@server/.... Squid now picks this up
75 when going direct, and turns it into basic WWW
76 authentication. It is also possible to do automatic login to
77 certain servers by using a redirector to add the needed
78 authentication information. (Henrik Nordstrom)
8f897f34 79
41587298 80Changes to Squid-2.0 (October 2, 1998):
71d6dc56 81
4c154d99 82 - Added NAT/Transparent hijacking code from Quinton Dolan.
83 - Added actual filesystem usage to cachemgr 'storedir' page.
41587298 84 Only works for operating systems which support statvfs().
a79d724b 85 - Fixed HTCP compile-time bugs.
86 - Fixed quick_abort bugs. Configured values are stored as
87 Kbytes, not bytes.
41587298 88 - Removed fwdAbortFetch(). It breaks quick_abort and seems
89 mostly useless.
0da7d807 90 - Changed storeDirSelectSwapDir() to skip swap directories
91 when their utilization is over the high water mark ratio.
9ca005ac 92 - Fixed off-by-one bug for dead neighbor detection (Joe Ramey).
18cc143b 93 - fixed bugs in Content-Range header generation
94 - changed the way Range requests are handled:
71d6dc56 95 - do not "advertise" our ability to process ranges at
96 all
97 - on hits, handle simple ranges and forward complex
98 ones
99 - on misses, fetch the whole document for simple ranges
100 and forward range request for complex ranges
101 The change is supposed to decrease the number of cases when
102 clients such as Adobe acrobat reader get confused when we
103 send a "200" response instead of "206" (because we cannot
104 handle complex ranges, even for hits) Note: Support for
105 complex ranges requires storage of partial objects.
41587298 106 - Removed SNMP mib-2.system group from squid.
107 - Removed SNMP ability to iterate through ipcache and friends.
108 - Added SNMP ipcache/fqdncache basic statistics.
109 - Converted SQUID-MIB to SMIv2 (RFC 1902).
110 - Moved SQUID-MIB to enterprises section of the tree in preparation
abcf1bb2 111 of the split into PROXY-MIB & SQUID-MIB.
41587298 112 - Corrected minor errors in SQUID-MIB.
113 - Moved uptime into cacheSystem from cacheConfig.
114 - Corrected a number of get-next-request bugs, snmpwalk should now
abcf1bb2 115 return all objects and not skip some.
41587298 116 - Fixed netdbClosestParent() so it won't return sibling
117 peers.
118 - Fixed a bug with secondary clients on entries with
119 ENTRY_BAD_LENGTH set. We should release the
120 bad entry to prevent secondary clients jumping on.
121 - Changed MIB to prevent parse warnings at startup.
f0538986 122 * Changes below have been made to SQUID_2_0_PATCH1
9689d97c 123 - Fixed a forwarding loop bug. Even though we were detecting
124 a loop, it was not being broken.
125 - Try to prevent sibling forwarding loops by NOT forwarding a
126 request to a sibling if we have a stale copy of the object.
127 Validation requests should only be sent to parents (or
128 direct).
129 - Fixed ncsa_auth hash bugs when re-reading password file.
130 - Changed clientHierarchical() so that by default SSL/CONNECT
131 requests do NOT go to neighbor caches.
d87ebd78 132 - Changed clientHandleIMSReply() to not call storeAbort()
133 because there can be more than one client hanging on the
134 StoreEntry. This hopefully fixes "store_status !=
135 STORE_ABORTED" assertions.
f0538986 136 - Added temporary fix to httpMakePublic() to prevent assertions
137 (!EBIT_TEST(e->flags, RELEASE_REQUEST)) in storeSetPublicKey().
138 * Changes below have been made to SQUID_2_0_PATCH2
139 - PATCH1 introduced a seriously stupid bug which prevented ICP
140 queries for all requests. Fixed by checking
141 request->hierarchical in peerSelectFoo().
18cc143b 142
4c154d99 143Changes to squid-1.2.beta25 (September 21, 1998):
144
4b66bfd3 145 - Fixed async IO bugs from adding filedescriptor arg to AIOCB
146 callbacks (Henrik Nordstrom).
147 - Fixed store_swapout.c assertion. We were freeing object data
148 past the swapout_done offset. This probably happens (only?)
149 when an object changes from cachable to uncachable while
150 it is being swapped out.
a260d877 151 - Added MEM_CLIENT_SOCK_BUF type so we can change the size
152 of the buffers used for writing data to the client sockets.
669d90e7 153 - Added configure check for libbind.a. If found, it will be
154 used instead of libresolv.a.
155 - Changed fwdStart() to always allow internally generated
dddd5b55 156 requests, such as for peer digests. These requests are
157 known to fwdStart() because the address arg is set to
158 'no_addr'.
669d90e7 159 - Completed initial HTCP implementation. It works, but is not
160 tested much.
2d5c8e74 161 - Added counters for I/O syscalls.
162 - Fixed httpMaybeRemovePublic. With broken ICP neighbors
163 (netapp) Squid doesn't use private keys. This caused us
164 to remove almost every object from the cache.
165 - Added 'asndb' cachemgr stats to show AS Number tree.
dddd5b55 166 - Fixed AS Number byte-order bug for netmasks.
2d5c8e74 167 - Fixed comm_incoming calling rate for high loads (Stewart
168 Forster).
426012d2 169 - Give always_direct higher precedence than never_direct
170 (Henrik Nordstrom).
dddd5b55 171 - Changed PORT ACL type to accept ranges. Now you can easily
172 deny, for example, all priveleged ports except 80, 70, 21,
173 etc.
174 - ARP ACL fixes for Linux (David Luyer).
175 - Replaced various "EBIT" flags bitfileds with structures of
176 "int:1" members.
177 - Changed storeKeyPrivate and storeKeyPublic to be a bit more
178 efficient by removing snprintf(). This causes an
179 incompatibility with old cache keys, however. To transition,
180 we will look up both the new and old style keys for about the
181 next 30 days. After that, if you haven't run this (or a
182 future) version, your cache contents will be lost.
183 - Made the client-side write buffer size configurable with
184 a #define in defines.h. By default it is still 4096 bytes.
185 - Removed redirectUnregister(). It should be unnecessary
186 because of cbdata locks.
187 - Fixed multiple HEAD request brokennesses (Henrik Nordstrom).
188 - Changed non-blocking connect(2) code to call getsockopt()
189 instead of connect() again. This is the approach recommended
190 by Stevens, and fixes bugs on BSD-ish systems when subsequent
191 connect() calls loop with EAGAIN status.
192 - Added MD5 cache keys to memory pool accounting.
193 - Added code to track number of open DISK descriptors and stop
194 swapping out objects if the number of disk descriptors becomes
195 too large. For now the limit must be manually configured with
196 the 'max_open_disk_fds'. By default, there is no limit.
197 - Stopped encoding a request method in the high byte of the ICP
198 reqnum field. Instead queried cache keys are copied to a
199 static array, indexed by the reqnum, modulo the array size.
200 Now we just use the request number to lookup a cache key,
201 instead of rebuilding it from the ICP reply URL and method,
202 unless we have netapp neighbors--they don't do reqnum
203 properly.
204 - Fixed reconfigure memory access bugs in redirect.c.
0753aa46 205 - Ignore unreasonably large ICP RTT values which cause overflow
206 bugs in calculating the average RTT (thanks Niall!)
4b66bfd3 207
8e6a43e8 208Changes to squid-1.2.beta24 (August 21, 1998):
209
6c4067e5 210 - Added Bulgarian error pages by Evgeny Gechev.
ceb79b2b 211 - Changed StoreEntry->lock_count to a u_short.
c7d6216e 212 - Replaced urlcmp with strcmp
213 - Fixed pragma no-cache ejecting ENTRY_SPECIAL objects
214 (Henrik Nordstrom).
215 - Eliminated unneeded BASE HREF on "root" directories (Henrik
216 Nordstrom).
217 - Fixed peerDigestFetchFinish() assertion caused by forwarding
218 failures (e.g. miss_access rules).
ada249f8 219 - Changed signal handlers with ASYNC_IO and Linux so that
220 -k command line options work (Miquel van Smoorenburg).
4616f9ea 221 - Rewrote shutdown code to use events instead of setting
222 FD timeouts.
903e21a0 223 - Fixed cachemgr 'objects' (statObjects()) by adding a check
b6a76fb2 224 for READ_AHEAD_GAP, and calling storeCheckSwapout() in
225 storeBufferFlush(). Otherwise, the read-past pages would
226 never be freed.
681979a2 227 - Fixed DNSSERVER shutdown bugs. The re-opened dnsserver processes
228 were being closed by the dnsServerShutdown event.
b6a76fb2 229 - Modified storeHashInsert() to insert PRIVATE objects at
230 the tail of the LRU list, and PUBLIC objects at the head.
231 Thus, PRIVATE objects get kicked out quicker.
95e36d02 232 - Added David Luyer's DELAY_POOLS code.
54b5b3e5 233 - Fixed a bug due to HEAD replies which lack the end-of-headers
234 line.
235 - Made proxy-auth realm string configurable (Bob Franklin)
236 - Changed default mime time to a viewable one (Henrik Nordstrom).
237 - configure fixes for Sony's NEWS-OS 6.x (Makoto MATSUSHITA).
238 - Fixed 'you are running out of filedescriptors' bug which
239 could cause the HTTP incoming connection handler to not
240 be reset.
e23fbf04 241 - Changed syslog logging. Now squid debug levels 0 and 1 go
d737baa0 242 to syslog. Level 0 gets LOG_WARNING and level 1 gets LOG_NOTICE
e23fbf04 243 (this needs more work!)
2cb51fe0 244 - Fixed memory access errors in statAvgTick().
abc1237e 245 - Fixed duplicate requestUnlink() bug in forward.c
6c4067e5 246 - Fixed possible memory access bugs from not setting e->mem_obj
247 = NULL in destroy_MemObject().
248 - Deleted TCP_IMS_MISS tag. Always use TCP_IMS_HIT instead.
249 - Modified headersEnd and httpMsgIsolateHeaders to account
250 for funky line terminations such as CRCRNL.
251 (``but Netscape and IE _tolerate_ this'')
252 - Fixed carp functions (Eric Stern).
253 - Replaced internal proxy_auth code with extern authentication
254 module (Arjan de Vet).
255 - moved hash.c to libmiscutil.a.
e931f99a 256 - Fixed handling of ICP queries with whitespace in URLs.
257 Now we return ICP error and escape the URL before logging.
3a15a393 258 - Added configure check for socklen_t (David Luyer).
259 - Removed USE_SPLAY #defines; it is now standard.
3a76c002 260 - Added FD arg to async IO callbacks (AIOCB) so we can eliminate
261 temporary disk_ctrl_t structures.
262 - Changed ENOSPC disk write errors to reduce specific cache_dir
263 sizes, and not just the size of the cache as a whole.
f9cece6e 264 - Added httpMaybeRemovePublic() to purge public objects for
265 certain responses even though they are uncachable. This is
266 needed, for example, when an initially cachable object
267 later becomes uncachable.
8e6a43e8 268 - Added refresh_pattern options to ignore client reloads
269 (Henrik Nordstrom)
270 - Relocated disk.c code which combines blocks for writing
271 (Stewart Forster).
c7d6216e 272
857703c6 273Changes to squid-1.2.beta23 (June 22, 1998):
274
cf7f704c 275 - Added Turkish error pages by Tural KAPTAN.
66bbb757 276 - Added basic support for Range requests. For most cachable
277 requests, Squid replies with an "Accept-Ranges" header. Upon
278 receiving a potentially cachable Range request for a not
279 cached object, Squid requests the whole object from origin
280 server and then replies with specified range(s) to the
281 client. Multi-range requests are supported. Adjacent
282 overlapping ranges are merged. If-Range requests are
283 supported. Limitations: Multi-range requests with out of
284 order ranges are not supported.
285 - Made md5.c use standard memcpy and memset if they are
286 avaliable.
287 - Memory pools will now shrink if Squid is run-time
288 reconfigured with smaller value of memory_pools_limit tag.
289 - Added counter for number of clients (Tomi Hakala).
290 - Changed neighbor UP/DOWN algorithm to require 10 failed TCP
291 connections for UP->DOWN transition.
292 - Added 'unique_hostname' configuration option when its
293 necessary to have multiple machines with the same visible
294 hostname.
222917b2 295 - Fixed pumpReadFromClient() to not read too many bytes on
296 persistent connections.
53856ebd 297 - We can now cache HTTP replies with Set-Cookie. These evil
298 headers are now filtered out for cache hits on the client
299 side.
222917b2 300 - Fixed SNMP bugs caused by using snmpwalk.
9089cc70 301 - Fixed snmp system Group; all objects are now returned.
302 - Fixed snmp system Group sysDescr and sysContact.
78dfab2a 303 - Fixed snmp system Group sysObjectID it now returns a OBJECT
304 IDENTIFIER.
7fce9c3e 305 - Allocate FwdState from mem pools.
306 - Minor HTCP progress.
222917b2 307 - Moved 'miss_access' ACL check from client_side.c to forward.c
ed169eab 308 - Fixed logging of usernames for requests which require
309 proxy-authentication.
cf7f704c 310 - Fixed HTTP request parser to accept lowercase HTTP identifier
311 (Oskar Pearson).
312 - Fixed FTP listings to always include links to the parent
313 directory (Henrik Nordstrom).
314 - Fixed FTP to show an "empty" listing instead of showing
315 a "document contains no data" error (Henrik Nordstrom).
316 - Fixed refreshCheck() bug. Often it was checking the
317 refresh patterns against the string "[null_mem_obj]"
318 because we moved URLs to MemObject.
319 - Added CARP support by Eric Stern.
48382032 320 - Fixed select-spin bug when an ICP reply actually gets queued
321 and we failed to execute the write callback.
354b5fe1 322 - Fixed a storeCheckSwapOut bug. We were freeing up to
323 the queued offset instead of the done offset. This
324 resulted in a small chunk of object data not being in
325 memory and not yet written to disk. A client could
326 recieve a partial object because file_read() unexpectedly
327 returns EOF.
0aa791f8 328 - Fixed proxy-authentication hangs (Henrik Nordstrom).
c2354a6b 329 - Fixed request_t->flags bug causing authenticated, proxied
330 responses to be cached (Arjan de Vet).
e0e32f36 331 - Fixed MIME types for .tgz extension (Henrik Nordstrom).
332 - Added view and download options to FTP listings (Henrik
333 Nordstrom).
334 - Modified configure to allow using pre-installed libdlmalloc.a
335 (Masashi Fujita).
e8d8856c 336 - Fixed cachemgr 'objects' implementation.
fecf98dc 337 - Changed refreshCheck() algorithm. For cached objects, we
338 now check, in the following order:
339 * request max-age
340 * response Expires (if present)
341 * refresh_pattern max-age
342 * response Last-Modified compared to refresh_pattern
343 LM-factor (only if Last-Modified is present)
344 * refresh_pattern min-age
345 - Changed Copyrights.
d192d11f 346
ee3a78d4 347Changes to squid-1.2.beta22 (June 1, 1998):
348
2246b732 349 - do not cut off "; parameter" from "digitized" Content-Type
350 http fields
351 - Added X-Request-URI for persistent connection debugging
352 (Henrik Nordstrom)
f4d83f6d 353 - Added Polish error pages from Maciej Kozinski.
145f10f1 354 - Fixed hash_first/hash_next bugs with **Current pointer.
355 Replaced with *next pointer.
f4d83f6d 356 - Fixed PUT/POST bugs in client (Henrik Nordstrom).
357 - Deny forwarding loops in httpd accel mode (Henrik Nordstrom).
358 - Fixed eventRun "spin" bug when event delta time == 0.
a9cc1935 359 - Fixed setting Last Modified time on cached entries when
360 receiving a 304 reply.
06e87923 361 - Added while loop in httpAccept().
362 - Added while loop in icpHandleUdp().
363 - Fixed some small memory leaks.
364 - Fixed single-bit-int flag checks (Henrik Nordstrom).
137ee196 365 - Replaced "complex" (offset accounting) calls to snprintf with MemBuf
366 - Do not send only-if-cached cc directive with requests
367 for peer's digests.
ee3a78d4 368 - Added "automatic tuning" for incoming request rate, i.e.
369 how often to check HTTP and ICP sockets. See comm.c
370 comments for details.
145f10f1 371
6ee40ea2 372Changes to squid-1.2.beta21 (May 22, 1998):
373
434b408f 374 - Added Italian error pages by Alessio Bragadini.
a3f9588e 375 - Added Estonian error pages by Toomas Soome.
06066bbc 376 - Added Russian (koi-r) error pages by Andrew L. Davydov.
7b381d33 377 - Added Czech error pages by Jakub Nantl.
8e866bb4 378 - Fixed asnAclInitialize calling to prevent coredump.
379 - Fixed FTP directory parsing again.
380 - Made FTP directory listing "Generated" tagline like
381 the one for error pages.
52f977aa 382 - Fixed an assertion coredump in statHistCopy from
383 reconfiguring with different #peers in squid.conf
10202788 384 - Ignore leading whitespace on requests (and replies). RFC
385 2068 section 4.1, robustness (Henrik Nordstrom)
386 - Fixed keep_alive bug. We did not always honour reply
387 headers, but rather assumed connections could be persistent.
388 - Fixed reading whois output for AS numbers, especially when
389 they are longer than 4 KB.
390 - Removed 'cache_stoplist_pattern' configuration option. This
391 feature is now handled by 'no_cache'.
392 - If a URN resolves to only one URL, just return it immediately
393 instead of giving the user a "choice" (Andy Powell).
394 - Fixed year-2000 bug in lib/iso3307.c (Henrik Nordstrom).
395 - Changed squid-internal object names.
396 - Added netdb exchange protocol.
397 - Fixed wordlistDestroy() uninitialized pointer bug in
398 ftpParseControlReply.
06066bbc 399 - Fixed redirector subprocess to show real program name.
400 - Changed URN menu output to be sorted.
401 - Added fast select(2) timeouts when using ASYNC_IO.
402 - Added ARP ACL support for Linux (David Luyer).
2246b732 403 - Added binary http headers to requests
99edd1c3 404 - request_t objects are now created and destroyed in a consistent way
405 - Fixed cache control printf bug
406 - Added a lot of new http header ids
407 - Improved Connection: header handling; now both Connection and
2246b732 408 Proxy-Connection headers are checked for connection directives
99edd1c3 409 - Connection request header is now handled correctly regardless
410 of its position and the number of entries
2246b732 411 - Only replies with valid Content-Length can be sent with keep-alive
412 connection directive (Henrik Nordstrom)
413 - Better handling of persistent connection "clues" in HTTP headers;
414 the decision now depends on HTTP version (and User-Agent exceptions)
99edd1c3 415 - Removed handling of "length=" directive in IMS headers;
416 the directive is not in the HTTP/1.1 standard;
417 standing by for objections
418 - allowed/denied headers are now checked using bit masks instead of
419 strcmp loops
420 - removed Uri: from allowed headers; Uri is deprecated in RFC 2068
2246b732 421 - removed processing of Request-Range header (not in specs?)
7b381d33 422 - Fixed byte-order bugs in cacheDigestHashKey.
423 - Changed hash_remove_link() to return void.
424 - Changed ipcache_gethostbyname() to return NULL if
425 i->addrs.count == 0.
6de5fa88 426 - Added millisecond-timing to select/poll loops and event
427 queue.
428 - Changed 'peerPingTimeout' value to be twice the average
429 of all the peer ICP RTT's.
430 - Added 'half_closed_clients' option to force closing of
431 client connections which might only be half-closed.
432 - Fixed matchDomainName coredump bug.
433 - Don't cache HTTP replies with Vary: headers until we
434 get content negotiation working.
435 - Fixed SSL proxying to forward full HTTP request headers.
c09459dd 436 - Changed storeGetMemSpace(). Only purge down to the HIGH
437 water mark; move locked entries to the head of the inmem
438 list.
439 - Changed clientReadRequest() to locally handle any
440 "squid-internal-static" URL for any host.
52f977aa 441 - Disable persistent connections for client connections
442 from broken Netscape User-Agent, version 3.* (Stewart Forster)
434b408f 443
901b8eaf 444Changes to squid-1.2.beta20 (April 24, 1998):
445
fd1bc012 446 - Improved support for only-if-cached cache control directive.
447 - Enabled 304 replies for ENTRY_SPECIAL objects (e.g., icons).
a1a62b14 448 - Fixed 'quick_abort' percent calculation bug.
449 - Fixed quick_abort FPE bug.
450 - Changed more errno-checking functions to use ignoreErrno().
451 - Added ERESTART to ignoreErrno() because of report from
452 a Solaris system.
453 - Fixed '#elsif' typo.
454 - Fixed MemPool assertion by moving memInit() to before
455 configuration parsing functions.
456 - Fixed default 'announce_period' value (was 1 day, should
457 be 0) (Joe Ramey).
458 - Added configure warning for low filedescriptors and pointer
459 to FAQ.
b0497a40 460 - Fixed httpBodySet() bug causing URN related coredumps.
461 - Changed ipcacheCycleAddr() to always cycle through all all
462 available addresses, and not just advance when one of
463 them goes BAD.
464 - Fixed squid-internal bug for mixed-case hostnames (Henrik
465 Nordstrom).
4e41d49f 466 - Fixed ICP counting probelm. icpUdpSend() arg should be
467 LOG_ICP_QUERY instead of LOG_TAG_NONE.
e4b71f74 468 - Added some additional fault toleranse on FTP data channels
469 (Henrik Nordstrom).
470 - Corrected error reporting on FTP "hacks" (Henrik Nordstrom).
471 - Added lock/unlock for StoreEntry during storeAbort().
472 - Added filemap bit usage stats to cachemgr 'storedir' and
473 'info'.
474 - Replaced 'cache_stoplist' with 'no_cache' Access list.
475 - Fixed (hopefully) remaining swapfile-open-at-exit bugs.
44745828 476 - Fixed default hierarchy_stoplist to be ``default if none.''
477 - Fixed 'fake a recent reply' hack for detecting DEAD
478 and ALIVE neighbors (Joe Ramey).
e376562a 479 - Fixed FTP directory parsing bugs (Joe Ramey).
480 - Fixed ftpTraverseDirectory coredump for NULL ftpState->filepath
481 (Joe Ramey).
dea17509 482 - Fixed daylight savings time bug (again).
fd1bc012 483 - A lot of Cache Digests additions, fixes, and tuning.
484 Cache Digests are still "very experimental".
e376562a 485 - Fixed snprintf() bug. When len == 1, snprintf() would treat
486 the buffer as unknown size, emulating sprintf() behaviour.
487 - Made Error page language configurable with configure script
488 (Henrik Nordstrom).
489 - Fixed squid-internal URLs when http_port == 80.
490 - Remember the client address on redirected requests (Henrik
491 Nordstrom).
492 - Don't rebuild the request if the redirector returned the same
493 URL (Henrik Nordstrom).
494 - Rewrite Host: header on redirected requests (Henrik
495 Nordstrom).
496 - Include port (if non-standard) in generated Host: headers
497 (Henrik Nordstrom).
498 - Fixed rfc1123 timezone hacks for Windows NT
499 (Henrik Nordstrom).
500 - Added Russian Error pages by Ilia Zadorozhko.
501 - Added totals for ICP and HTTP hits to cachemgr client_list
502 output.
6cfa8966 503 - Changed error message to 'Generated TIME by HOST (SQUID/VER)'
504 because any string with an '@' must be an email address.
e376562a 505 - Fixed POST for content-length == 0.
901b8eaf 506 - Fixed "huge 304 reply" loop bug.
5e9ab945 507 - Fixed --enable-splaytree compile bugs.
c93fbf13 508 - Removed ASN lookup code in peer_select.c.
fd1bc012 509
005e5260 510Changes to squid-1.2.beta19 (Apr 8, 1998):
511
b0497a40 512 - Squid-1.2.beta19 compiles and runs on Windows/NT with
513 Cygnus Gnu-WIN32 b19 (Henrik Nordstrom).
447203a7 514 - Added French Error pages by Frank DENIS.
515 - Added Dutch Error pages by Mark Visser
901b8eaf 516 - Added German Error pages by Bernd P. Ziller, Jens Frank,
517 and Anke S.
f9f2be04 518 - Added support for only-if-cached cache-control directive.
005e5260 519 - Added RELAXED_HTTP_PARSER #define to allow requests which are
520 missing the HTTP identifier on the request line (e.g. buggy
521 SpyGame queries). RELAXED_HTTP_PARSER is undefined by default.
1f4d31f9 522 - Fixed disk.c FD leak for delayed closes in
523 diskHandleWriteComplete().
524 - Fixed cache announcement feature.
20fe7191 525 - Fixed httpReadReply() to retry failed HTTP requests on
526 persistent connections when read() returns -1, not only
527 when it returns 0.
805e5f70 528 - Fixed cbdata memory counting leak. cbdataUnlock() always
529 called free(), never memFree().
ff396fe6 530 - Fixed storeDirWriteCleanLogs() malloc bug on Alphas.
005e5260 531 - Fixed `++loopdetect < 10' assertion due to
532 clientHandleIMSReply bug for invalid/partial HTTP
533 replies.
534 - Added preliminary code for HTCP.
535 - Renamed 'aux' dir to 'cfgaux' for legacy DOS machines.
536 - Added "snmp_community" as an ACL type.
537 - Cleaned up proxy-auth acl implementation and removed
538 memory leaks.
539 - Added generic 'hashFreeItems()' function for efficiently
540 freeing hash table pointers.
541 - Added whoisTimeout() for ASN code.
447203a7 542 - Removed BINARY TREE code.
005e5260 543 - Fixed forgetting to reset Config.Swap.maxSize in
544 configDoConfigure.
545 - Fixed httpReplyUpdateOnNotModified() arguments-in-wrong-order
546 bug which caused not modified replies to not get updated.
547 - Fixed client_side.c bugs which could cause data to be written
548 to the client in the wrong order for persistent connections.
549 clientPurgeRequest() and clientHandleIMSComplete() must not
550 call comm_write(). Instead they must create and write to
551 StoreEntry's.
552 - Fixed ICP query service time counting bug(s).
553 - replaced 'char *mime_headers_end()' with 'size_t headersEnd()'
554 to fix buffer overruns. This also requires adding 'buf_sz'
555 args to some functions like clientBuildReplyHeader().
556 But we can eliminate the need to NULL-terminate the
557 buffer beforehand.
558 - Changed commConnectCallback() to reset the FD timeout to
559 zero before notifying about the connection. This requires
560 commSetTimeout() calls in numerous places to reinstall
561 timeouts.
562 - Changed comm_poll_incoming() to be called less frequently
563 (every 15 I/O's instead of every 7 FD's) (Michael O'Reilly).
564 - Removed HAVE_SYSLOG case for debug() macro. Almost all
565 systems do have syslog(), but more importatnly the
566 _db_level value is needed for debugging to stderr.
567 - Rewrote squid/dnsserver interface to use smaller, single-line
568 messages.
569 - Rewrote 'dns' cachemgr output to use a table format.
570 - Rewrote a lot of dnsserver.c.
571 - Added eventAddIsh() for semi-random event scheduling.
572 - Fixed an ftpTimeout bug for sessions which use PORT
573 commands.
574 - Fixed ftp.c to recognized invalid PASV replies (e.g.
575 port == 0).
576 - Removed hash_insert(). All hasing uses hash_join() now.
577 - Renamed hash_unlink() to hash_remove_link().
578 - Added hashPrime() to find closes prime hash table size
579 to a given value.
580 - Fixed Keep-Alive ratio counting bug which prevented
581 persistent connections from being used between cache
582 peers.
583 - Changed icmp.c to NOT queue messages sent from squid to
584 the pinger program.
585 - Changed icp_v2.c to NOT queue ICP messages by default.
586 But they will be queued and resent once if the first
587 send fails. Counters.icp.queued_replies counts the
588 number of messaages queued.
589 - Cleaned up ICP logging.
590 - Added identTimeout().
591 - Fixed ipcache reply counting bug. Overcounted dnsserver
592 replies for partial replies.
593 - Added urlInternal() for building internal Squid URLs.
594 - Changed peerAllowedToUse() to check both 'cache_peer_domain'
595 AND 'cache_peer_acl' configurations. This should be changed
596 in the fugure to use ONLY cache_peer_acl.
597 - Changed DEAD/REVIVED neighbor detection to avoid reporting
598 so many false deaths. (Joe Ramey).
599 - Added some preliminary code to support "cache digests."
600 - Fixed pumpClose() coredumps (?).
601 - Updated cachemgr 'info' output to show median service
602 times for various categories.
603 - Fixed ABW bug in storeDirWriteCleanLogs(). sizeof(off_t)
604 != sizeof(int) for Alphas.
605 - Fixed potential alignment problem in storeDirWriteCleanLogs().
606 - Fixed store_rebuild.c to NOT replace current, but
607 not-swapped-out StoreEntry's with on-disk entries.
608 - Changed storeCleanup() to call storeRelease on invalid
609 entries which don't have a swapfile (i.e. no unlink()
610 penalty).
611 - Fixed storeSwapInStart() to fail for unvalidated
612 entries.
613 - SNMP changes:
614 . renovated mib and added descriptions and comments
615 . added hit and byte counters to client_db , for
616 cacheClientTable
617 . cacheClientTable, netdbTable, cachePeerTable,
618 cacheConnTable now indexed by ip address. hash_lookup was
619 enhanced to allow for subsequent hash_next's similar to
620 hash_first, to speed up getnext's in tables which refer to
621 hash-table structures.
622 . added generic (well, sorf of) table indexing functionality
623 . added makefile dependencies for snmplib and cache_snmp.h
624 . WaisHost, WaisPort, Timeouts removed
625 . FdTable split into FdTable and ConnTable. FdTable simplified
626 . PeerTable and PeerStat merged and put into new cacheMesh
627 group
628 . cacheClientTable added for client statistics and accounting
629 (cacheMesh 2)
630 . cacheSec and cacheAccounting groups removed
631 . fixed acl bug when communities not defined
632 . snmp_acl now survives bad configuration
81d0c856 633
9a713ffb 634Changes to squid-1.2.beta18 (Mar 23, 1998):
635
275d9f2e 636 - Added v1.1 'test_reachability' option.
637 - Fixed hash4() len == 0 bug.
2c26197b 638 - Fixed Config.Swap.maxSize reconfigure bug.
639 - Fixed ICP query bug determining request method.
640 - Moved ICP's storeGet() cache lookup into neighborsUdpAck()
641 so that we know neighbors are alive even when they send
642 us replies for unknown entries.
643 - Changed configure script to add '-std1' for Digital Unix cc.
644 - Fixed SNMP sizeof(int) / sizeof(long) bugs for 64-bit
645 systems.
646 - Added support for 'Cache-Control: Only-If-Cached' request header.
34ad1721 647 - Fixed CheckQuickAbort() bugs for multiple clients on one
648 StoreEntry. Also changed storePendingNClients() to return
649 mem->nclients instead of counting the number of store_client
650 entries with pending callback functions.
275d9f2e 651
041b157e 652Changes to squid-1.2.beta17 (Mar 17, 1998):
653
df43fc93 654 - SNMP MIB version check changed to non-rcs.
02922e76 655 - Added memory pools for variable size objects (strings).
656 There are three pools; for small, medium, and large objects.
657 - Extended String object to use memory pools. Most fixed size char
658 array fields will be replaced using string pools. Same for most
659 malloc()-ed buffers.
5e14bf6d 660 - Changed icon handling to use the hostname and port of the squid
9ed90c85 661 server, instead of the special hostname "internal.squid"
662 (Henrik Nordstrom).
5e14bf6d 663 - All icons are now configured in mime.conf. No hardcoded icons,
f8360ee3 664 including gohper icons (Henrik Nordstrom).
459f2559 665 - Fixed ICP bug when we send queries, but expect zero
666 replies.
ed9c0b33 667 - Fixed alignment/casting bugs for ICP messages.
2b5b6324 668 - A generic client-to-server "pump" was added to handle HTTP
669 PUT as well as POST methods on the client-cache side. Based on
670 "pump" PUT requests can be made to either HTTP or FTP url's.
671 Code is still beta and interoperability with browsers etc has
672 not been tested.
673 - Put #ifdefs around 'source_ping' code.
5e14bf6d 674 - Added missing typedef for _arp_ip_data (Wesha).
675 - Added regular-expression-based ACLs for client and server
676 domain names (Henrik Nordstrom).
677 - Fixed ident-related coredumps from incorrect callback data.
678 - Fixed parse_rfc1123() "space" bug.
679 - Fixed xrealloc() XMALLOC_DEBUG bug (not calling check_free())..
680 - Fixed some src/asn.c end-of-reply bugs and memory leaks.
681 - Fixed some peer->options flag-setting bugs.
682 - Fixed single-parent feature to work again
683 - Removed 'single_parent_bypass' configuration option; instead
684 just use 'no-query'.
685 - Surrounded 'source_ping' code with #ifdefs.
686 - Changed 'deny_info URL' to use a custom Error page.
687 - Modified src/client.c for testing POST requests.
041b157e 688 - Fixed hash4() for SCO (Vlado Potisk).
459f2559 689
7ba777f2 690Changes to squid-1.2.beta16 (Mar 4, 1998):
691
447203a7 692 - Added Spanish error messages from Javier Puche.
02922e76 693 - Added Portuguese error messages from Pedro Lineu Orso
0965bd19 694 - Added a simple but very effective hack to cachemgr.cgi that tries to
695 interpret lines with '\t' as table records and formats them
696 accordingly. With a few exceptions (see source code), first line
697 becomes a table heading ("<th>" html tag) and the rest is formated
698 with "<td>" tags.
7021844c 699 - Added "mem_pools_limit" configuration option. Semantics of
700 "mem_pools" option has also changed a bit to reflect new memory
701 management policy.
7ba777f2 702 - Reorganized memory pools. Squid now supports a global pool
703 limit instead of individual pool limits. Per-pool limits can be
3a88d597 704 implemented on top of the current scheme if needed, but it is
7ba777f2 705 probably hard to guess their values. Squid distributes pool
706 memory among "frequently allocated" objects. There is a
707 configurable limit on the total amount of "idle" memory to be
708 kept in reserve. All requests that exceed that amount are
709 satisfied using malloc library. Support for variable size
710 objects (mostly strings) will be enabled soon.
711 - memAllocate() has now only one parameter. Objects are always
712 reset with 0s. (We actually never used that parameter before;
713 it was always set to "clear").
714 - Added Squid "signature" to all ERR_ pages. The signature is
715 hardcoded and is added on-the-fly. The signature may use
716 %-escapes. Added interface to add more hard-coded responses if
717 needed (see errorpage.c::error_hard_text).
718 - Both default and configured directories are searched for ERR_
719 pages now. Configured directory is, of course, searched first.
720 This allows you to customize a subset of ERR_ pages (in a
721 separate directory) without danger of getting other copies out
722 of sync.
723 - Security controls for the SNMP agent added. Besides
724 communities (like password) and views (part of tree
725 accessible), the snmp_acl config option can be used to do acl
726 based access checks per community.
727 - SNMP agent was heavily re-written, based on cmu-snmpV1.8. You
728 can now walk through the whole mib tree. Several new variables
729 added under cacheProtoAggregateStats
12cf1be2 730 - Added rudimental statistics for HTTP headers.
7ba777f2 731 - Adjusted StatLogHist to a more generic/flexible StatHist.
12cf1be2 732 Moved StatHist implementation into a separate file.
178dbda2 733 - Added FTP support for PORT if PASV fails, also try the
734 default FTP data port (Henrik Nordstrom).
735 - Fixed NULL pointer bug in clientGetHeadersForIMS when a
736 request is cancelled for fails on the client side.
737 - Filled in some squid.conf comments (never_direct,
738 always_direct).
739 - Added RES_DNSRCH to dnsserver's _res.options when the
740 -D command line option is given.
741 - Fixed repeated Detected DEAD/REVIVED Sibling messages when
742 peer->tcp_up == 0 (Michael O'Reilly).
743 - Fixed storeGetNextFile's incorrect "directory does not exist"
744 errors (Michael O'Reilly).
745 - Fixed aiops.c race condition (Michael O'Reilly, Stewart
746 Forster).
747 - Added 'dns_nameservers' config option to specify non-default
748 DNS nameserver addresses (Maxim Krasnyansky).
749 - Added lib/util.c code to show memory map as a tree
750 (Henrik Nordstrom).
751 - Added HTTP and ICP median service times to Counters and
752 cachemgr average stats.
753 - Changed "-d" command line option to take debugging level
754 as argument. Debugging equal-to or less-than the argument
755 will be written to stderr.
ef65d6ca 756 - Removed unused urlClean() function from url.c.
adba4a64 757 - Fixed a bug that allowed '?' parts of urls to be recorded in
ef65d6ca 758 store.log. Logged urls are now "clean".
178dbda2 759 - Cache Manager got new Web interface (cachemgr.cgi). New .cgi
760 script forwards basic authentication from browser to squid.
761 Authentication info is encoded within all dynamically generated
762 pages so you do not have to type your password often.
763 Authentication records expire after 3 hours (default) since
764 last use. Cachemgr.cgi now recognizes "action protection" types
765 described below.
766 - Added better recognition of available protection for actions
767 in Cache Manager. Actions are classified as "public" (no
768 password needed), "protected" (must specify a valid password),
769 "disabled" (those with a "disable" password in squid.conf), and
770 "hidden" (actions that require a password, but do not have
771 corresponding cachemgr_passwd entry). If you manage to request
772 a hidden, disabled, or unknown action, squid replies with
773 "Invalid URL" message. If a password is needed, and you failed
774 to provide one, squid replies with "Access Denied" message and
775 asks you to authenticate yourself.
776 - Added "basic" authentication scheme for the Cache Manager.
777 When a password protected function is accessed, Squid sends an
778 HTTP_UNAUTHORIZED reply allowing the client to authorize itself
779 by specifying "name" and "password" for the specified action.
780 The user name is currently used for logging purposes only. The
781 password must be an appropriate "cachemgr_passwd" entry from
782 squid.conf. The old interface (appending @password to the url)
783 is still supported but discouraged. Note: it is not possible
784 to pass authentication information between squid and browser
785 *via a web server*. The server will strip all authentication
786 headers coming from the browser. A similar problem exists for
787 Proxy-Authentication scheme.
788 - Added ERR_CACHE_MGR_ACCESS_DENIED page to notify of
789 authentication failures when accessing Cache Manager.
63259c34 790 - Added "-v" (Verbose) and "-H" (extra Headers) options to client.c.
178dbda2 791 - Added simple context-based debugging to debug.c. Currently,
792 the context is defined as a constant string. Context reporting
793 is triggered by debug() calls. Context debugging routines
794 print minimal amount of information sufficient to describe
795 current context. The interface will be enhanced in the future.
796 - Replaced _http_reply with HttpReply. HttpReply is a
797 stand-alone object that is responsible for parsing, swapping,
798 and comm_writing of HTTP replies. Moved these functions from
799 various modules into HttpReply module.
8bfcd557 800 - Added HttpStatusLine, HttpHeader, HttpBody.
178dbda2 801 - All HTTP headers are now parsed and stored in a "compiled"
802 form in the HttpHeader object. This allows for a great
803 flexibility in header processing and builds basis for support
804 of yet unsupported HTTP headers.
805 - Added Packer, a memory/store redirector with a printf
806 interface. Packer allows to comm_write() or swap() an object
807 using a single routine.
808 - Added MemBuf, a auto-growing memory buffer with printf
809 capabilities. MemBuf replaces most of old local buffers for
810 compiling text messages.
811 - Added MemPool that maintains a pre-allocated pool of opaque
812 objects. Used to eliminate memory thrashing when allocating
813 small objects (e.g. field-names and field-value in http
814 headers).
8bfcd557 815
3197e644 816Changes to squid-1.2.beta15 (Feb 13, 1998):
817
55647891 818 NOTE: This version has changes which may cause all or part
819 of your cache to be lost. However, you can problably
820 save most of it by doing a slow restart. Specifically:
821
822 1. Kill the running squid-1.2.beta14 process; wait for it to
823 fully exit.
824 2. Remove all 'swap.state*' files, either in each cache_dir, or
825 as defined in your squid.conf
826 3. Start squid-1.2.beta15. The store will be rebuilt from the
827 existing swap files, reading the directories and opening
828 the files.
829
bcfbdc11 830 - Fixed some problems related to disk (and pipe) write error
831 handling. file_close() doesn't always close the file
832 immediately; i.e. when there are pending buffers to write.
833 StoreEntry->lock_count could become zero while a write is
834 pending, then bad things happen during the callback.
835 - The file_write() callback data must now be in the callback
836 database (cbdata). We now use the swapout_ctrl_t structure
837 for the callback data; it stays around for as long as we are
838 swapping out.
839 - Changed the way write errors are handled by diskHandleWrite.
840 If there is no callback function, now we exit with a fatal
841 message under the assumption that the file in question is a
842 log file or IPC pipe. Otherwise, we flush all the pending
843 write buffers (so we don't see multiple repeated write errors
844 from the same descriptor) and let the upper layer decide how
845 to handle the failure.
846 - Fixed storeDirWriteCleanLogs. A write failure was leaving
847 some empty swap.state files, even though it tells us that its
848 "not replacing the file." Don't flush/rename logs which we
849 have prematurely closed due to write failures, indiciated by
850 fd[dirn] == -1. Close these files LAST, not before
851 renaming.
852 - Fixed storeDirClean to clean directories in a more sensible
853 order, instead of the new "MONOTONIC" order for swap files.
0465e406 854 - Merged fdstat.c functions into fd.c.
855 - Cleaned up some debugging sections. Some unrelated source
856 files were using the same section.
857 - Removed curly brackets from all cachemgr output.
858 - Removed unused filemap->last_file_number_allocated member.
859 - Removed unused fde->lifetime_data member.
860 - Fixed incorrectly applying htonl() on icp_common_t->shostid.
861 - Call setsid() before exec() in ipc.c so that child processes
862 don't receive SIGINT (etc) when running squid on a tty.
2f2dd5ad 863 - Changed StoreEntry->object_len to ->swap_file_sz so we
864 can verify the disk file size at restart. Moved object_len
865 to MemObject->object_sz. Note object_sz is initialized
866 to -1. If object_sz < 0, then we need to open the swap
867 file and read the swap metadata.
868 - Changed store_client->mem to ->entry because we need
869 e->swap_file_sz to set mem->object_sz at swapin.
2f2dd5ad 870 - Renamed storeSwapData structure to storeSwapLogData.
871 - Fixed storeGetNextFile to not increment d->dirn. Added
872 check for opendir() failure.
873 - Fixed storeRebuildStart to properly link the directory
874 list for storeRebuildfromDirectory mode.
e157f97f 875 - Added -S command line option to double-check store
876 consistency with disk files in storeCleanup().
877 - Fixed a problem with transactional logging. In many
878 cases we were adding the public cache key and then
879 logging a delete for the private key. This is worthless
880 because during rebuild we could not locate the previous
881 public-keyed entry. Now we assert that only public-keyed
882 entries can be logged to swap.state. storeSetPublicKey()
883 and storeSetPrivateKey() have been modified to log an
884 ADD or DEL when the key changes.
885 - Fixed storeDirClean bug. Needed to call
886 storeDirProperFileno() so the "dirn bits" get set.
887 - Fixed a storeRebuildFromDirectory bug. fullpath[] and
888 fullfilename[] were static to that function and did
889 not change when the "rebuild_dir" arg did. Moved these
890 buffers to the rebuild_dir structure.
891 - In storeRebuildFromSwapLog, we were calling storeRelease()
892 for cache key collisions. This only set the RELEASE_REQUEST
893 bit and did not clear the swap_file_number in the filemap or
894 in the StoreEntry, so the swap file could get unlinked later
895 when it was really released.
4e0f0471 896 - Fixed FTP so that ';type=X' specifically sets the HTTP reply
897 content-type and content-encoding (Henrik Nordstrom).
898 - Removed 'icon_content_type' configuration option. Content
899 types now taken from mime.conf (Henrik Nordstrom).
2a9b2b73 900 - Added additional memory malloc tracing and memory leak
901 detection. Use --enable-xmalloc-debug-trace configure
902 option and -m command line option (Henrik Nordstrom).
bcfbdc11 903
93169941 904Changes to squid-1.2.beta14 (Feb 6, 1998):
905
5471db88 906 - Replaced snmplib free() calls with xfree().
907 - Changed the 'net_db_name' hash table structure to
908 make it easier to move names from one network to another
909 (copied from 1.1 code).
93169941 910 - Filled in some of the config dump routines (dump_acl,
911 dump_acl_access).
912 - Full memory debugging option (--enable-xmalloc-debug-trace)
913 (Henrik Nordstrom).
914 - Filled-in and clarified many squid.conf comments (Oskar
915 Pearson).
916 - Fixed up handling of SWAP_LOG_DEL swap.state entries.
5471db88 917
f91834bf 918Changes to squid-1.2.beta13 (Feb 4, 1998):
f577e074 919
b4512acd 920 - NOTE: With this version the "swap.state" file format has
921 changed. Running this version for the first time will
922 cause your current cache contents to be lost!
f91834bf 923 - NOTE: this version still has the bug where we don't rewind
924 a swapout file and rewrite the swap meta data. Objects
925 larger than 8KB will be lost when rebuilding from the swap
926 files.
d04dd4bf 927 - Combined various interprocess communication setup functions
928 into ipcCreate().
929 - Removed some leftover ICP_HIT_OBJ things.
930 - Removed cacheinfo and proto_count() and friends; these are to
931 be replaced in functionality by StatCounters and 5/60 minute
932 average views via cachemgr.
933 - Fixed --enable-acltree configure message (Masashi Fujita).
934 - Fixed no reference to @LIB_MALLOC@ in src/Makefile.in
935 (Masashi Fujita).
936 - Fixed building outside of source tree (Masashi Fujita).
dbfed404 937 - FTP: Format NLST listings, and inform the user that the NLST
938 (plain) format is available when we find a LIST listing that we
939 don't understand (Henrik Nordstrom)
940 - FTP: Use SIZE on Binary transfers, and not ASCII. The
941 condition was inversed, making squid use SIZE on ASCII
942 transfers (Henrik Nordstrom).
943 - Enable virtual and Host: based acceleration in order to be
944 able to use Squid as a transparent proxy without breaking
945 either virtual servers or clients not sending Host: header
946 the order of the virtual and Host: based acceleration needs
947 to be swapped, giving Host: a higher precendence than virtual
948 host (Henrik Nordstrom).
949 - Use memmove/bcopy as detected by configure Some systems does
950 not have memmove, but have the older bcopy implementation
951 (Henrik Nordstrom).
6cf028ab 952 - Completely rewritten aiops.c that creates and manages a pool
953 of threads so thread creation overhead is eliminated (SLF).
954 - Lots of mods to store.c to detect and cancel outstanding
955 ASYNC ops. Code is not proven exhaustive and there are
956 definately still cases to be found where outstanding disk ops
957 aren't cancelled properly (SLF).
958 - Changes to call interface to a few routines to support disk
959 op `tagging', so operations can be cleanly cancelled on
960 store_abort()s (SLF).
961 - Implementation of swap.state files as transaction logs.
962 Removed objects are now noted with a negative object size.
963 This allows reliatively clean rebuilds from non-clean
964 shutdowns (SLF).
965 - Now that the swap.state files are transaction logs, there's
966 now no need to validate by stat()ing. All the validation
967 procedure does is now just set the valid bit AFTER all the
968 swap.state files have been read, because by that time, only
969 valid objects can be left. Object still need to be marked
970 invalid when reading the swap.state file because there's no
971 guarantee the file has been retaken or deleted (SLF).
972 - An fstat() call is now added after every
973 storeSwapInFileOpened() so object sizes can be checked. Added
974 code to storeRelease() the object if the sizes don't match (SLF).
975 - #defining USE_ASYNC_IO now uses the async unlink() rather than
976 unlinkd() (SLF).
977 - #defining MONOTONIC_STORE will support the creation of disk
978 objects clustered into directories. This GREATLY improves disk
979 performance (factor of 3) over old `write-over-old-object'
980 method. If using the MONOTONIC_STORE, the
981 {get/put}_unusedFileno stack stuff is disabled. This is
982 actually a good thing and greatly reduces the risk of serving
983 up bad objects (SLF).
984 - Fixed unlink() in storeWriteCleanLogs to be real unlink()
985 rather than ASYNC/unlinkd unlinks. swap.state.new files were
986 being removed just after they were created due to delayed
987 unlinks (SLF).
988 - Disabled various assertions and made these into debug warning
989 messages to make the code more stable until the bugs can be
990 tracked down (SLF).
991 - Added most of Michael O'Reilly's patches which included many
992 bug fixes. Ask him for full details (SLF).
993 - Moved aio_check_callbacks in comm_{poll|select}(). It was
994 called after the fdset had been built which was wrong because
995 the callbacks were changing the state of the read/write
996 handlers prior to the poll/select() calls (SLF).
f09f5b26 997 - Fixed ARP ACL memory leaks (Dale).
f577e074 998 - Eliminated URL and SHA cache keys. Cache keys will always
999 be MD5's now.
1000 - Fixed up store swap meta data.
1001 - Changed swap.state logs to a binary format.
f91834bf 1002 - The swap.state logs are written transaction-style.
d04dd4bf 1003
b5cfbd5b 1004Changes to squid-1.2.beta12 (Jan 30, 1998):
1005
b4512acd 1006 - Added metadata headers to cache swap files. This is an
1007 incompatible change with previous versions. Running this
1008 version for the first time will cause your current cache
1009 contents to be lost.
9fc0b4b8 1010 - -D_REENTRANT when linking with -lpthreads (Henrik Nordstrom)
1011 - Show symlink destinations as a hyperlink in FTP listings
1012 (Henrik Nordstrom)
3a4eaced 1013 - Fixed not allocating enough space for rewriting URLs with
1014 the Host: header (Eric Stern).
1015 - Year-2000 fixes (Arjan de Vet).
1016 - Fixed looping for cache hits on HEAD requests.
fc6dc767 1017 - Fixed parseHttpRequest() coredump for
1018 "GET http://foo HTTP/1.0\r\n\r\n\r\n"
9fc0b4b8 1019
9f802cb1 1020Changes to squid-1.2.beta11 (Jan 6, 1998):
1021
fd82d0b0 1022 - Fixed fake 'struct rusage' definition which prevented compling
1023 on Solaris 2.4.
1024 - Fixed copy-by-ref bug for request->headers in
1025 clientRedirectDone() (Michael O'Reilly).
812db943 1026 - Workaround for Solaris pthreads closing FD 0 upon fork()
1027 (Michael O'Reilly).
05fd71a7 1028 - Fixed shutdown bug with outgoing UDP sockets; we need to
1029 disable their read handlers.
1030 - For comm_poll(), use the fast 50 msec timeout only when
1031 USE_ASYNC_IO is defined.
1fbc6de3 1032 - Fixed pointer bug when freeing AS# ACL entries.
1033 - Fixed forgetting to reset Config.npeers to zero in free_peer().
0f6bdbfa 1034 - Fixed ICP bug causing excessive TIMEOUTs with sibling
1035 neighbors. We must call the ICP reply callback even for
1036 sibling misses.
1037 - Fixed some dnsserver-related reconfigure bugs. Need to
1038 use cbdataLock, etc in fqdncache.c. Also don't want to
1039 use ipcacheQueueDrain() and fqdncacheQueueDrain().
1040 - Fixed persistent connection bug. We were incorrectly
1041 deciding that non-200 replies without content-length
1042 would not have a reply body.
1043 - Fixed intAverage() precedence bug.
1044 - Fixed memmove() 'len' arg bug.
1045 - Changed algorithm for determining alive/dead state of peers.
1046 Instead of using a fixed number of unacknowledged ICP
1047 replies, it is now based on timeouts. If there are no ICP
1048 replies received from a peer within 'dead_peer_timeout'
1049 seconds, then we call it dead.
1050 - Added calls to getCurrentTime() in
1051 comm_{select,poll}_incoming() when ALARM_UPDATES_TIME is not
1052 being used.
1053 - Fixed shutdown bug when the incoming and outgoing ICP socket
1054 is the same file descriptor.
e970f357 1055 - Added buffered writes for storeWriteCleanLogs() (Stewart
1056 Forster).
1057 - Patches for Qnx4 (Jean-Claude MICHOT).
1058 - Fixed returning void functions which seems to be a GCC-ism.
e5f4e1b0 1059 - New configure script options (Henrik Nordstrom):
1060 --enable-new-storekey=[sha|md5(|url)] (was --enable-hashkey)
1061 --enable-acltree
1062 --enable-icmp
1063 --enable-delay-hack
1064 --enable-useragent-log
1065 --enable-kill-parent (this should be named -hack)
1066 --enable-snmp
1067 --enable-time-hack
1068 --enable-cachemgr-hostname[=hostname] (new)
1069 --enable-arp-acl (new)
1070 - Added Doug Lea malloc-2.6.4 to the distribution, so that
1071 people easily can try a decent malloc package if they syspect
1072 their malloc is broken. --enable-dlmalloc (Henrik Nordstrom).
1073 - Made XMALLOC_DEBUG_COUNT working again. Requires a small stub
1074 function (Henrik Nordstrom).
1075 - Removed top-level Makefile. People must now run 'configure'
1076 before 'make'.
714ace98 1077 - Fixed checkFailureRatio() implementation.
82b3c7d9 1078 - Made 'squid -z' behave like the 1.1 version.
e5f4e1b0 1079
fd82d0b0 1080
ab9a3f7e 1081Changes to squid-1.2.beta10 (Jan 1, 1998):
1082
1083 - Fixed content-length bugs for 204 replies, 304 replies,
1084 and HEAD requests (Henrik Nordstrom).
1085 - Fixed errorAppendEntry() bug in gopherReadReply().
1086 - Basic support for FTP URL typecodes (;type=X).
9c965c1b 1087 - Support for access controls based on ethernet MAC addresses
ab9a3f7e 1088 (Dale).
1089 - Initial URN support; see
1090 http://squid.nlanr.net/Squid/urn-support.html
1091 - Fixed client-side persistent connections for objects with
1092 bad content lengths (Henrik Nordstrom).
1093 - Fixed bad call to storeDirUpdateSwapSize() for objects which
1094 never reach SWAPOUT_DONE state.
68e3a9df 1095 - Fixed up poll() #defines in squid.h (Stewart Forster).
1096 - Changed poll() timeout from 1000 msec to 50 msec for
1097 better performance under low load (Stewart Forster).
e7a1fde6 1098 - Changed storeWriteCleanLogs() to write objects in the LRU
1099 list order instead of the random hash table order.
109ff6af 1100 - Fixed FTP bug when data socket connections fail or timeout.
1101 - Reuse FTP data connection when possible (Henrik Nordstrom).
1102 - Added configure options (Henrik Nordstrom)
1103 --enable-store-key=sha|md5
1104 --enable-xmalloc-statistics
1105 --enable-xmalloc-debug
78743365 1106 --enable-xmalloc-debug-count
1107 --async-io
109203bf 1108 - Fixed confusing with the use/meaning of ERR_CANNOT_FORWARD
1109 by creating ERR_FORWARDING_DENIED and changing the
1110 content of the ERR_CANNOT_FORWARD text.
4e9c07c1 1111 - Fixed pipeline request bug from using strdup() (Henrik
1112 Nordstrom).
1113 - Call clientReadRequest() directly instead of commSetSelect()
1114 for pipelined requests (Henrik Nordstrom).
1b02b5be 1115 - Fixed 4k page leak in icpHandleIMSReply();
1116 - Renamed 'icp*' functions to 'client*' names in client_side.c.
e7a1fde6 1117
b90a0f8d 1118Changes to squid-1.2.beta8 (Dec 2, 1997):
1119
eae03fc8 1120 - Fixed accessLogLog() to log ident from Proxy-Authorization
1121 request header (BoB Miorelli).
226f9ba2 1122 - Fixed #includes, prototypes, etc. in SNMP source files.
1123 - Moved 'POLLRDNORM' and 'POLLWRNORM' macro checks from
1124 include/config.h.in to src/squid.h
1125 - Moved 'num32' typedefs from src/typedefs.h to
1126 include/config.h.in.
1127 - Moved snmplib/md5.c to lib/md5.c.
1128 - Added MD5 cache key support.
1129 - Removed xmalloc() return check in uudeocde.c
1130 - Added 'ifdef' support to cf_gen.c for optional code (e.g. SNMP)
1131 - Changed 'client' program to provide easier cache manager access,
1132 e.g.: 'client mgr:info'
1133 - Fixed 'client' to send 'Connection' instead of 'Proxy-Connection'
1134 for simulated keep-alive requests.
1135 - Removed 'fd' arg from clientProcess* functions.
9e3468d5 1136 - Fixed bugs from using errorSend() on persistent/pipelined
226f9ba2 1137 client connections. A latter request should not be allowed to
1138 write to the client fd until the current request completes.
1139 Now use errorAppendEntry() for such situations.
1140 - Fixed content-length bugs. We were using content-length == 0
1141 to also indicate a lack of content-length reply header. But
1142 'content-length: 0' might appear in a reply, so now use -1 to
1143 indicate that no content length given.
1144 - Split up clientProcessRequest() into smaller chunks so it
1145 might be easier to follow.
1146 - renamed various client_side.c functions to start with 'client'
1147 instead of 'icp'.
1148 - Fixed a 'cbdata leak' from the comm.c close handlers.
1149 - Fixed a 'cbdata leak' from the comm.c connect routines.
1150 - Fixed comm_select() and comm_poll() to stop looping on the
1151 incoming HTTP/ICP sockets. If there are fewer than 7 FD's
1152 ready for I/O, the incoming sockets might not get service, so
1153 comm_select() would be called for up to 7 times until the
1154 'incoming_counter' was incremented enough to trigger a call
1155 to comm_select_incoming(). Now we make sure
1156 comm_select_incoming() gets called if select returns less
1157 than 7 ready FD's.
9e3468d5 1158 - Added errorpage '%B' token to generate FTP URLs with a '%2f'
1159 inserted at the start of the url-path. calls ftpUrlWith2f().
1160 (Henrik Nordstrom).
226f9ba2 1161 - Changed fqdncache.c to use LRU double-linked list instead of qsort()
1162 for replacement and cachemgr output.
1163 - Changed ipcache.c to use LRU double-linked list instead of qsort()
1164 - Changed hash_insert() and hash_join() to return void.
1165 for replacement and cachemgr output.
1166 - Moved StoreEntry->method member to MemObject->method.
1167 - Made StoreEntry->flags 16 bits.
1168 - Made StoreEntry->refcount 16 bits.
1169 - Changed URL-based public cache key to always include the request
1170 method.
eae03fc8 1171
95bc9f0b 1172Changes to squid-1.2.beta7 (Nov 24, 1997):
1173
6a11653c 1174 - Fixed poll() for Linux (David Luyer).
1175 - SHA optimizations (David Luyer).
1176 - Fixed errno clashes with macro on Linux (David Luyer).
1177 - Fixed storeDirCloseSwapLogs(); logs might not be open.
1178 - Fixed storeClientCopy2() bug. Detect when there is
1179 no more data to send for objects in STORE_OK state.
19ee64b1 1180 - Fixed FTP truncation bug when ftpState->size == 0, e.g.
1181 especially directory listings.
95bc9f0b 1182 - Mega FTP fix from Henrik Nordstrom. A better job of
1183 implementing the '%2f' hack.
1184 - Fixed some pipelined request bugs. storeClientCopy() was
1185 being given the wrong StoreEntry, and we had a race condition
1186 which is now handled by storeClientCopyPending().
99077fe6 1187 - Added initial SNMP support.
6a11653c 1188
2c9b45c9 1189Changes to squid-1.2.beta6 (Nov 13, 1997):
1190
1b5516d3 1191 - Fixed Authorized responses getting swapped out when they
1192 don't have Proxy-Revalidate reply header.
1193 - Fixed Proxy Authentication support. We never sent back
1194 a 407 reply, and were incorrectly incrementing the passwd
1195 before comparing it.
1196 - Fixed stat()ing pathnames for default values before parsing
1197 config file (Ron Gomes).
1198 - Fixed logging request and response headers on separate lines
1199 (Ron Gomes).
1200 - Fixed FTP Authentication message (Henrik Nordstrom).
1201 - Changed Proxy Authentication to trigger a reread of the passwd
1202 file if a password check fails (Henrik Nordstrom).
1203 - Changed FTP to retry the first CWD with a leading slash if it
1204 fails without one.
1205
8c17a569 1206Changes to squid-1.2.beta5 (Nov 6, 1997):
1207
90045285 1208 - Track the 'keep-alive ratio' for a peer as the ratio of
1209 the number of replies including 'Proxy-Connection: Keep-Alive'
1210 compared to the number of requests sent. If the peer does
1211 not support Persistent connections then this ratio will tend
1212 toward zero. If the ratio is less than 50% after 10 requests
1213 then we'll stop sending Keep-Alive.
8c3994aa 1214 - Proper support for %nn escapes in FTP, and numerous
1215 other fixes (Henrik Nordstrom).
1216 - Support for Secure Hash Algorithm and framework for other
1217 hash functions as cache keys.
1218 - Fixed SSL snprintf() bug which broke SSL proxying.
1219 - Fixed store_dir swap log bug from reconfigure (SIGHUP).
8c17a569 1220 - Fixed LRU Reference Age bug. The arg to pow() must be
8031bd43 1221 minutes, not seconds.
90045285 1222
9ddfb255 1223Changes to squid-1.2.beta4 (Oct 30, 1997):
1224
a493f974 1225 - Fixed DST bug in rfc1123.c
1226 - Changed default http_accel_port to 80.
1227 - added errorCon() as a ErrorState constructor function
1228 (Max Okumoto).
1229 - Added ERR_FTP_FAILURE message for ftpFail().
1230 - For FTP, the timeout callback must be moved to the 'data'
1231 descriptor when data transfer begins. Otherwise we are
1232 likely to get a timeout on the control descriptor.
1233 - Fixed double-free bug in httpRequestFree().
1234 - Fixed store_swap_size counting bug in storeSwapOutHandle().
1235
409a6aad 1236Changes to squid-1.2.beta3 (Oct 29, 1997):
1237
1238 - Initialize _res.options to RES_DEFAULT in dnsserver.c.
1239 - Fix assertions which assumed 4-byte pointers.
1240 - Fix missing % in fqdncache.c snprintf().
1241
5a2d610b 1242Changes to squid-1.2.beta2 (Oct 28, 1997):
1243
8c3994aa 1244 - Fixed aiops.c and async_io.c so that they actually compile
f5b8bbc4 1245 with USE_ASYNC_IO (Arjan de Vet).
1246 - Fixed errState->errno causing problems with some macros
1247 (Michael O'Reilly).
d287f51e 1248 - Fixed memory leaks in pconn.c (Max Okumoto).
0866009b 1249 - Enhanced 'client' program with 'ping' behaviour (Ron Gomes).
272547b5 1250 - Fixed InvokeHandlers() from calling memCopy() for ALL
1251 store_client's with callbacks. A store_client might be reading
1252 from disk.
5a2d610b 1253 - Rewrote storeMaintainSwapSpace(). No longer will we scan one
272547b5 1254 bucket at a time. Instead we'll maintain a single LRU
1255 list. When an object is 'touched' we move it to the
1256 top of this list. When we need disk space, we delete
1257 from the bottom.
5a2d610b 1258 - Removed storeGetSwapSpace().
f5b8bbc4 1259
871f0b8a 1260Changes to squid-1.2.beta1 ():
1261
1262 - Reworked storage manager to not keep objects in memory during
1263 transit. In other words, no separate NOVM distribution.
1264 - Lots of cleanup and debugging for beta release.
1265 - Use snprintf() everywhere instead of sprintf().
1266 - The 'in_memory' hash table has been replaced with a
1267 doubly-linked list. New objects are added to the head of
1268 the list. When memory space is needed, old objects are
1269 purged from the tail of the list.
1270
0edfe7a2 1271Changes to squid-1.2.alpha7 ():
1272
c4958532 1273 - fixes fixes fixes.
1274 - Made Arjan's PROXY_AUTH ACL patch standard.
0edfe7a2 1275
8905b90c 1276Changes to squid-1.2.alpha6 ():
1277
6684fec0 1278 - Simpler cacheobj implementation.
6605655c 1279 - persistent connection histogram
8872e1f8 1280 - SERVER-SIDE PERSISTENT CONNECTIONS:
1281 - Added pconn.c
1282 - Addec Cofig.Timeout.pconn; default 120 seconds
1283 - Added httpState->flags
1284 - Added flags arg to httpBuildRequestHeader()
1285 - Added HTTP_PROXYING and HTTP_KEEPALIVE flags
1286 - Added 'Connection' to allowed HTTP headers (http-anon.c)
1287 - Added 'Proxy-Connection' to allowed HTTP headers
1288 (http-anon.c)
a7736231 1289 - Merged proxyhttpStart() with httpStart() and created
8872e1f8 1290 new httpBuildState().
1291 - New httpPconnTransferDone() detects end-of-data on
1292 persistent connections.
6684fec0 1293
88738790 1294Changes to squid-1.2.alpha5 ():
1295
1296 - New configuration system. Everything is generated from
1297 'cf.data.pre', including the main parser, setting defaults,
1298 outputting current values, and freeing memory.
1299 This also involved moving some of the local data structures
1300 (e.g. struct _acl *AclList in acl.c) to the Config
1301 structure. (Max Okumoto)
1302 - No more '/i' for regular expressions. Now insert a '-i'
1303 to switch to case-insensitive. Use '+i' for case-sensitive.
1304 - When you have a variable named the same as its type, sizeof()
1305 gets the wrong one (fde).
1306 - Need to flush unbuffered logs before fork().
1307 - Added two fields swap log: refcount and e->flag.
1308 - Removed all the .h files for each .c file. Now #include stuff
1309 is in either: defines.h, enums.h, typedefs.h, structs.h,
1310 or protos.h, globals.h. This greatly reduces dependencies
1311 between the various source files.
1312 - globals.c is generated from globals.h by a Perl script.
8ee3ca2c 1313 - Started customizable error texts.
88738790 1314
97f674c8 1315Changes to squid-1.2.alpha4 ():
1316
ec973719 1317 - New MIME configuration, regular expression based
1318 - Added request_timeout config option
1319 - Multiple HTTP sockets (Lincoln Dale).
1320 - Moved 'fds_are_n_free' check to httpAccept().
1321 - s/USE_POLL/HAVE_POLL/; make poll() default if available.
7e49f700 1322 - Changed storeRegister to use offsets and make immediate
1323 callbacks if appropriate.
1324 - Removed icpDetectClientClose(). Some of that functionality
1325 goes into clientReadRequest() and the rest into
1326 httpRequestFree().
b1b387d1 1327 - Moved IP lookups to commConnect stuff.
1328 - Added support for retrying connect().
858164fc 1329 - New inline debug() macro (David Luyer).
e174e0fe 1330 - Replace frequent gettimeofday() calls with alarm(3) based
1331 clock. Need to add more gettimeofday() calls to get back
a59968c7 1332 high-resolution timestamp logging (Andres Kroonmaa).
0153d498 1333 - Added support for Cache-control: proxy-revalidate;
1334 based on squid-1.1 patch from Mike Mitchell.
ec973719 1335
3b08d32d 1336Changes to squid-1.2.alpha3 ():
1337
1338 - Implemented persistent connections between clients and squid.
1339 - Moved various FD tables (comm.c, fdstat.c, disk.c) to a single
1340 table in fd.c.
1341 - Removed use of FD as an identifier in certain callback
1342 operations (ipcache, fqdncache).
1343 - General code cleanup.
1344 - Fixed typedefs for callback functions.
1345 - Removed FD lifetime/timeout dichotomy. Now we only have
1346 timeouts, however the lifetime concept/keyword may still
1347 linger in certain places.
1348 - Change Makefile 'realclean' target to 'distclean'
1349 - Changed config file parsing of time specifications to use
1350 parseTimeLine().
1351 - Removed storetoString.c
1352
1353Changes to squid-1.2.alpha2 ():
74cebec0 1354
1355 - Merged squid-1.1.9, squid-1.1.10 changes
1356
7b41ec97 1357Changes to squid-1.2.alpha1 ():
1358
1359 - Unified peer selection algorithm.
75e88d56 1360 - aiops.c and aiops.h are a threaded implementation of
1361 asynchronous file operations (Stewart Forster).
1362 - async_io.c and async_io.h are complete rewrites of the old
1363 versions (Stewart Forster).
6ad85e8a 1364 - Rewrote all disk file operations of squid to support
75e88d56 1365 the idea of callbacks except where not required (Stewart
1366 Forster).
75e88d56 1367 - Background validation of 'tainted' swap log entries (Stewart
1368 Forster).
1369 - Modified storeWriteCleanLog to create the log file using the
1370 open/write rather than fopen/printf (Stewart Forster).
1371 - Added the EINTR error response to handle badly interrupted
1372 system calls (Stewart Forster).
6ad85e8a 1373 - UDP_HIT_OBJ not supported, removed.
1374 - Different sized 'cache_dirs' supported.
75e88d56 1375
e924600d 1376==============================================================================