1 Polipo 1.0.5 (unreleased)
3 * Fixed a bug that could cause incorrect logging to syslog (thanks
5 * Proper va_list handling for AMD64 and other RISC-like
6 architectures on non-GNU platforms.
7 * Implemented work-around for broken Content-Range headers.
8 * Use 1024 instead of 32 as the length of the listen queue.
9 * Implemented the ability to control the permissions set on the log file.
10 * Implemented the ability to scrub private information from logs.
11 * Tweaked the portable version of mktime_gmt. This will hopefully
12 fix the time issues on Windows. Thanks to MaxWell and Greg.
13 * Changed chunk allocator to use larger arenas on 64-bit arches.
14 * Fixed a bug that could prevent saving objects on disk. Thanks to
16 * Fixed an issue that could cause crash messages to go into the disk
18 * Fixed a bug that could cause the default chunk memory to be incorrect
19 on FreeBSD machines. Thanks to Frank Behrens.
20 * Fixed a number of bugs in the validation of Range requests. Thanks to
22 * Fixed an integer overflow that may lead to a crash
23 (http://secunia.com/advisories/37607/). Discovered by Jeremy Brown.
25 * Inhibited range requests for non-200 instances, as this breaks some
26 client software. Thanks to Ken Brazier.
27 * Added GCC stack smashing protection compiler flags to the Makefile.
28 Thanks to Jake Appelbaum.
29 * Added numerous code fixes by Fabian Keil resulting from his use of
30 the Clang static analyzer.
31 * Fixed a crash that occurs when a server sends a malformed
32 Cache-Control: header (CVE-2009-3305). Patch from Stefan Fritsch.
33 * added dontIdentifyToClients, which attempts to mitigate privacy issues
34 due to running untrusted scripts on the client side.
35 * Made locking more paranoid, this might solve the issue of Polipo being
36 unable to serve large objects when running without a disk cache.
37 * Changed the default value of diskCacheWriteoutOnClose to 64kB.
38 * Prevent an infinite loop when a bodyless 204 or 1xx response is encountered.
39 * Don't crash when we get an error while waiting for 100 continue status.
40 * Cleaned up naming of Windows support functions. Thanks to honglei jiang.
41 * Don't crash when we receive a CONNECT tunnel request without a port.
43 31 January 2010: Polipo 1.0.4.1:
45 * Fixed an integer overflow that may lead to a crash
46 (http://secunia.com/advisories/37607/). Discovered by Jeremy Brown.
48 * Fixed a crash that occurs when a server sends a malformed
49 Cache-Control: header (CVE-2009-3305). Patch from Stefan Fritsch.
50 * Prevent an infinite loop when a bodyless 204 or 1xx response is encountered.
51 * Don't crash when we get an error while waiting for 100 continue status.
53 8 January 2008: Polipo 1.0.4:
55 * Fixed the handling of tunnels with a parent proxy (thanks to
57 * Fixed a bug that could cause connections to be shut down when
58 a server used the old (RFC 2068) semantics of ``100 Continue''
59 (thanks to Thomas Wiesel).
60 * Fixed a crash when a request URL was larger than 10 kB (thanks to
62 * Fixed a possible failure to read client requests larger than one
65 6 October 2007: Polipo 1.0.3
67 * Changed the default for chunkMemory: it is now 24 MB or
68 one-quarter of physical memory, whichever is smaller.
69 * Support for logging to syslog (thanks to Nix).
70 * Made atom reference counts 32-bit longs; this should fix
71 problems that people were seeing when running Polipo with
72 humongous in-memory caches.
73 * Added Git, Jabber and CVS to default tunnelAllowedPorts.
74 * Fixed a bug that could cause URL matching to fail when using
75 anchored regular expressions (thanks to phuel).
77 26 August 2007: Polipo 1.0.2:
79 * Fixed a crash that could happen with entities more than 2GB in
80 size. Such entities are still not supported, but Polipo
81 should no longer crash.
82 * Minor HTTP compliance fixes, due to testing with Co-Advisor.
83 * Fixed a crash that would happen when a POST request was aborted
84 by the server. Reported by Tero Pelander.
85 * Worked around a DNS-related bug that I'm unable to track down,
86 waiting for a proper fix.
88 25 June 2007: Polipo 1.0.1:
90 * Made Polipo slightly more aggressive when speaking to
91 HTTP/1.0 servers (thanks to Fabian Keil for noticing that).
92 * Fixed a crash that would happen when a client used
93 Cache-Control: only-if-cached, and the object was not in cache.
94 (Reported by F. Zappa, A. Patala and V. Ghosal.)
95 * Fixed a descriptor leak when running under Windows.
96 * Made Polipo optionally drop connections after servicing
97 a number of connections (maxConnectionAge and maxConnectionRequests).
99 6 March 2007: Polipo 1.0.0
101 * No changes since 0.9.99.2.
103 7 February 2007: Polipo 0.9.99.2
105 * Fixed a buffer overflow in urlDirname (the 0.9 branch is not
106 vulnerable) (reported by J. P. Larocque).
107 * Implemented use of IPv6 temporary source addresses (Frank Behrens).
108 * Disabled use of unaligned range requests by default. This is
109 controlled by the variable allowUnalignedRangeRequests (reported
111 * Fixed descriptor leaks in SOCKS error handling (reported by
113 * Implemented maxSideBuffering.
115 6 February 2007: Polipo 0.9.12
117 * Fixed incorrect caching of redirects (reported by Lawrence Lu).
118 * Fixed a possible hang when falling back to gethostbyname
119 (reported by Chris Moore).
121 28 December 2006: Polipo 0.9.99.1
123 * Validation improvements and bug fixes.
124 * Don't use cached data when receiving the output from an HTTP/1.0 CGI.
125 * Allowed tunnelling of IMAP and POP traffic by default.
126 * Changed the disk cache expiry and indexing functions to use chunks.
127 * Made the disk cache unreadable by others by default.
128 * Fixed a bug that could cause stale data to be served after
129 a connection failure (reported by Hondza).
130 * Fixed computation of age and rtt for pipelined requests.
131 * Fixed incorrect cachability of redirects (reported by J.-P. Larocque).
132 * Fixed a bug that would cause uncachable objects to become
133 cachable after being reloaded from the on-disk cache (reported
135 * Implemented dontTrustVaryETag.
137 7 December 2006: Polipo 0.9.11
139 * Fixed a crash that could happen when a network interface went down
140 while a DNS query was in progress (reported by Francesco Zappa).
142 20 November 2006: Polipo 0.9.99.0:
144 * Implemented large buffers for headers larger than a chunk's worth.
145 * Made the HTTP parser lax by default (ignores unknown headers).
146 * Implemented the infrastructure for local POST requests and
147 implemented a real configuration interface (thanks to Theo Honohan).
148 * Made timeouts user-configurable and enforced an invariant between
150 * Made logging configurable at runtime (thanks to Frank Behrens).
151 * Implemented the infrastructure for asynchronous handling of
153 * Implemented the ability to redirect instead of returning an
154 error for forbidden URLs.
155 * Implemented support for Squid-style redirectors.
156 * Implemented User-configurable uncacheable URLs, analogous to
157 forbidden URLs (thanks to Joachim Haga).
158 * Implemented the ability to avoid caching pages with cookies
160 * Implemented maxPipelineTrain, which can be used to moderate
161 * Polipo's eagerness to pipeline.
162 * Unified parentHost and parentPort into parentProxy.
163 * Ported Polipo to native Windows (thanks to Dan Kennedy).
164 * Implemented disableVia.
165 * Implemented SOCKS support.
166 * Made disableVia and cacheIsShared to be true by default.
167 * Increased the default value of serverMaxSlots to 8.
168 * Made the disk cache code quote all characters except for a
169 small number of ``known safe'' ones. This is an incompatible
170 change to the on-disk format.
171 * Changed HTTP parser to pass all Pragma headers to the next
172 hop; this should make some media players work through Polipo.
173 * Changed the connection scheduler to avoid pipelining when
174 there are idle connections to a given server.
175 * Made Polipo obey parentProxy when tunnelling (proxying https).
176 * Changed the default value of allowedPorts to be slightly more
178 * Implemented tweakables for selectively disabling parts of the
179 configuration interface. Indexing and listing known servers
180 are now disabled by default.
181 * Hide variables containing passwords.
182 * Fixed a bug that could cause incorrect validation when speaking
183 to an HTTP/1.0 server.
184 * Fixed a bug that could cause incorrect validation of Vary objects.
185 * Fixed a crash in the redirector code.
186 * Made disableVia the default, and changed the default value of idleTime.
187 * Made polipo delay serving of partial objects until after a
188 a successful validation. This should fix Mozilla's prefetching.
189 * On 64-bit platforms, made CHUNK_SIZE default to 8kB.
191 2 September 2006: Polipo 0.9.10:
193 * Fixed a crash when a client closes a connection at just the
195 * Fixed a crash that could happen when a server returned incorrect
196 headers and closed the connection at just the wrong time.
197 * Fixed restarting of connections on a server-side read error;
198 this should avoid the ``connection reset by peer'' problem.
199 * Corrected work-around for DNS servers that export both AAAA and CNAME.
200 * Fix incorrect error handling when overflowing the buffer when saving
202 * IPv6 tweaks for OpenBSD (thanks to Jun-ichiro itojun Hagino).
203 * Fixed incorrect error-handling on failure to parse a date.
204 * Fixed a deadlock when a tunnel is shut down and the buffer is
206 * Fixed an incorrect use of va_start (guaranteed crash on AMD64).
207 * Fixed a possible race condition with a heavily pipelining client.
208 * Fixed a crash due to incorrect handling of write errors in POST.
210 23 September 2005: Polipo 0.9.9:
212 * Fixed a bug that could cause objects to be incorrectly
213 determined to be dynamic (thanks to Joachim B. Haga).
214 * Fixed a bug that could cause the local web server to expose
215 files that are not under the local root (thanks to Wessel
217 * Fixed an off-by-one bug when parsing NL-terminated headers.
218 * Made Polipo forget about failures when finishing on the client side.
219 * Polipo now sends Host headers even when speaking to an upstream
220 proxy. Some proxies take RFC 2616 literally, and require that
221 (thanks to Zoltan Ivanfi).
222 * Fixed some bugs in staleness computation, and implemented
223 server-side max-age directives (oops!) (thanks to Charley Chu).
225 24 January 2005: Polipo 0.9.8:
227 * Backported the lax HTTP parser from the head branch.
228 * Fixed a race condition that could cause a crash if a single
229 object was being superseded twice at the same time.
230 * Fixed an incorrect test that caused Polipo to pipeline to all
231 HTTP/1.1 servers, even when they were determined as broken (thanks
233 * Implemented maxPipelineTrain.
234 * Tweaked for uclibc (thanks to Detlef Riekenberg).
236 27 December 2004: Polipo 0.9.7:
238 * Fixed a possible crash when tunnelling.
239 * Fixed spurious updates of object sizes when connection is dropped
241 * Fixed parsing of URLs with explicit port number (thanks to
243 * Fixed a possible crash when exiting POST in error.
244 * Fixed a protocol violation when an empty object is not superseded.
246 31 October 2004: Polipo 0.9.6:
247 * Fixed a possible crash in ServeObject.
248 * Fixed two possible crashes when relaxTransparency is not false.
249 * Modified the config file parser to make it possible to have
250 backslashes in atoms.
251 * Fixed a violated invariant (leading to a crash) when superseding
253 * Fixed a possible crash in ClientFinish when a pipelined request
255 * Fixed a bug in handling of client-side Expect: 100-continue
256 (reported by Charley Chu).
257 * Fixed a scheduling bug that caused server-side requests to be
258 issued in the order opposite to a client-side pipeline (many
259 thanks to Joachim Haga).
260 * Abort when the config file couldn't be parsed (thanks to
262 * Fixed error handling in POST and PUT requests, which could
263 cause a crash on an I/O error.
265 17 June 2004: Polipo 0.9.5:
266 * Implemented upstream proxy authentication (HTTP Basic only).
267 * Fixed a possible crash when unable to schedule servicing a request.
268 * Fixed a possible crash when tunnelling (proxying https).
269 * Fixed signedness issues to make allowedClients work on PPC
272 10 May 2004: Polipo 0.9.4:
273 * Fixed a bug (introduced in 0.9.3) that could cause a crash when
274 the download of an object was interrupted and then immediately restarted.
275 * Fixed a bug that could cause stale non-200 replies to be served.
276 * Fixed compilation on FreeBSD 5.2.1 (from Samuel Tardieu).
277 * Fixed definition of *_ROOT in diskcache.c
279 6 April 2004: Polipo 0.9.3:
280 * Fix incorrect handling of EPIPE when tunnelling; this could cause
281 crashes if a peer closed a connection when we're writing.
282 * Fix a race condition that could cause ``error message lost in transit''
283 errors if a request was cancelled during connect.
284 * Check for exitFlag in workToDo: faster reaction to signals.
286 28 March 2004: Polipo 0.9.2:
287 * Fixed a bug that could cause crashes when writing out small
288 objects (thanks to Frank Behrens).
289 * Made buffer allocation in httpParseHeaders dynamic.
290 * Fixed the declaration of pipelineAdditionalRequests.
291 * Fixed a bug that could cause empty directories to be missed
292 when expiring the disk cache.
293 * Switched the forbidden file to use extended regexps, the
294 previous usage was non-portable (thanks to Frank Behrens).
296 9 March 2004: Polipo 0.9.1:
297 * Fixed a bug that could cause chunked encoding failures when
298 going from a 1.0 server to a 1.1 client.
299 * Fixed a bug that prevented comments after some config lines
300 (thanks to Tom Huckstep).
301 * Fixed a possible buffer overflow in dnsDecodeReply.
302 * Fixed portability to systems where rmdir returns EEXIST
303 instead of ENOTEMPTY.
304 * Fixed error handling on fork failures in fillSpecialObject.
305 * Fixed handling of EINTR in wait in specialRequestHandler.
306 * Fixed a bug that caused objects with no headers to fail.
307 * Fixed a minor memory leak in the config file parser.
308 * Minor build fixes for NetBSD.
309 * Added the 68020 and later to the list of architectures that
310 support unaligned access.
312 18 February 2004: Polipo 0.9:
313 * Reworked the DNS code to parse ids even when a reply's qdcount
314 is 0. No longer falls back to gethostbyname when DNS server
316 * Made the DNS code parse resolv.conf.
318 11 Feburary 2004: Polipo 0.8.99.3:
319 * Minor changes to work around Cygwin mis-design.
320 * Fixed printing of n-state variables.
321 * Fixed proxyOffline handling.
322 * Fixed a bug that would cause errors to be reported with the
324 * Fixed a bug that would cause ``object vanished'' errors when
325 using HEAD for revalidation.
326 * Fixed a bug that could cause failed requests due to ``client
327 reset connection'' errors.
329 24 January 2004: Polipo 0.8.99.2:
330 * Cleaned up authentication.
331 * Made authenticated replies cachable in one of the cases allowed
333 * Fixed a bug that could, under some circumstances, cause a
334 password-protected object to be cached and returned to a
335 non-authorized client.
336 * Implemented 100-continue, controlled by the variable expectContinue.
337 * Implemented tristate, 4- and 5-state variables. Split
338 proxyOffline into proxyOffline and relaxTransparency. This is
339 an incompatible change to the config file format.
340 * Cleaned up the handling of allowed port ranges. New
341 configuration variable allowedPorts (and new type intlist).
342 * Implemented tunnelling through the CONNECT method (https proxying).
343 * Will now read a request body on error (avoids a deadlock).
344 * Reworked the PUT/POST code to read the reply eagerly rather
345 than waiting for the write to finish (avoids writing the full
346 body on error and avoids the same deadlock as above).
347 * Made server addresses sticky: will now remember which of a
348 servers addresses worked last time, and use that address first.
350 16 january 2004: Polipo 0.8.99.1:
351 * Fixed an expiry bug that caused DNS queries to be repeated on
353 * Added the variable ``preciseExpiry'' that prevents trusting
354 the mtime during expiry.
356 14 January 2004: Polipo 0.8.99.0:
357 * Implemented IP address-based authentication.
358 * Implemented HTTP ``basic'' authentication.
359 * Implemented variable body offsets for the on-disk cache; this
360 makes the on-disk cache format incompatible with previous versions.
361 * Made the number of server slots configurable.
362 * Partially rewrote the disk cache code.
363 * Fixed a file descriptor leak in the early error handling code.
364 * Fixed a bug in the base64 encoder; this makes the on-disk cache
365 format incompatible with previous versions.
366 * Implemented proper reporting for 100-Continue replies
367 (100-Continue is not implemented yet).
368 * Made the number of server slots configurable at runtime.
370 9 January 2004: Polipo 0.8.4:
371 * Log file is now line buffered.
372 * Will reopen the log file on SIGUSR1 and SIGUSR2.
373 * censoredHeaders now defaults to none, and censorReferer to 0.
374 * Fixed a memory allocation bug that could cause a crash.
376 21 December 2003: Polipo 0.8.3:
377 * Fixed a potential buffer overflow on C89 systems in snnprintf.
378 * Fixed checking of Via headers.
379 * Added configurable log file.
380 * Added code to run as a daemon.
381 * Made the resolver grok names ending in a ``.''.
382 * Changed Makefile to fit Debian better.
384 7 December 2003: Polipo 0.8.2:
385 * Implemented a version of fts for SVR4 systems.
386 * Implemented a version of mktime_gmt that doesn't use setenv.
387 * Fixed code used to determine FQDN.
388 * More unaligned access fixes.
389 * Disabled queryIPv6 when there is no IPv6 support in kernel.
390 * Enabled IPv6 support by default on FreeBSD and NetBSD.
392 2 December 2003: Polipo 0.8.1:
394 * Fix a possible crash when doing a POST on a busy server.
395 * Fix a possible crash when socket(2) fails; implement switching
396 to a different address when socket(2) fails (e.g. when
397 accessing a double-stack host from an IPv4-only client).
398 * Fix a problem with servers stuck in the ``probing'' state.
399 * Work around a bug in Konqueror that strips question marks from
401 * Fix incorrect error handling when dealing with connection
403 * Fix a compile problem in dns.c.
404 * Remove dependency on SSL, include MD5 code instead.
405 * Fix signedness of s_maxage.
407 23 November 2003: Polipo 0.8:
409 * IPv6 support, on both the client and server side, including
410 DNS support and RFC 2732.
411 * Reworked the DNS code.
412 * Made it possible to compile without any particular resolver
413 and without the on-disk cache.
414 * Fixed a problem with the chunking encoder.
415 * Made the config file parser grok octal and hex values, allowed
416 colons and tildes in unquoted strings.
417 * Implemented tilde expansion in some config variables.
418 * Made Polipo slightly less eager to honour range requests for
419 dynamic instances. Marked generated objects as dynamic. These
420 changes should solve some of the problems with PMM.
421 * Implemented the If-Range header (on both the client and server side).
422 * Implemented support for range requests smaller than one chunk
423 (and hence for pmmSize being smaller than CHUNK_SIZE).
424 * Fixed a bug that caused a deadlock (until a server timeout)
425 when doing a POST/PUT request with no free connection slots.
426 * Fixed a problem when diskCacheRoot didn't end in `/'.
427 * Fixed a refcounting problem that could cause Polipo to crash
429 * Fixed an alignment problem that could cause crashes on
430 architectures that don't like unaligned memory accesses
431 (thanks to Rob Byrnes).
432 * Fixed a bug with the disk cache that caused spurious ``disk
433 entry changed behind our back'' warnings (and in principle
434 could cause data corruption, although that's very unlikely).
435 * Made opening connections slightly less aggressive -- Polipo
436 would sometimes open two connections where only one was needed.
437 * Modified client-side code to notice client shutdowns earlier
438 and notify the server side straight away.
440 7 October 2003: Polipo 0.7
442 * Made the Request function a method of objects.
443 * Fixed a bug that could sometimes cause data corruption.
444 * Fixed a bug that could cause sending of incorrect data to
445 the client on a range request.
446 * Fixed POST and PUT requests.
447 * Fixed a bug that could sometimes cause a POST request to use a
449 * Included code to do poor man's multiplexing.
450 * Will now open multiple connections to non-persistent servers.
451 * Fixed a bug that could lead to idle connections dying without
453 * Fixed probing for pipelining.
454 * Actually use the new time function introduced in 0.5.
455 * Fixed a bug in strcasecmp_n.
456 * forbiddenFile can now be a directory.
458 26 September 2003: Polipo 0.6
460 * Fixed precondition handling.
461 * Fixed a bug that could lead to lockups when revalidating an object.
463 27 June 2003: Polipo 0.5
465 * Made the presence of a reader or writer explicit on the client side.
466 * Reworked closing client connections.
467 * Reworked reporting of server-side errors.
468 * Made buffer allocation lazy; idle clients and servers no longer
470 * Reworked UTC time handling to use timegm(3) when available.
472 12 March 2003: Polipo 0.4
474 * Implemented expiry of the on-disk cache.
475 * Implemented reliable aborting of connections; Polipo should no
476 * longer deadlock when a server falls into a black hole.
477 * Changed direct reads to be more aggressive by using readv in
479 * Changed serving of chunked data to be more eager about
480 serving a chunk's end marker.
481 * Implemented better reporting of DNS errors.
482 * Fixed a deadlock with pipelining on the client side.
483 * Removed most of the remaining copies when reading on the
485 * Fixed a bug that caused some headers to disappear in transit.
486 * Fixed a possible livelock when reading chunked encoding.
487 * Fixed an overflow when pipelining on the server side.
488 * Fixed generation of indexes from the on-disk cache.
489 * Fixed a DNS crash when falling back on gethostbyname.
491 1 March 2003: Polipo 0.3
493 * Implemented retrying of timed-out DNS requests.
494 * Implemented configuration mechanisms for case-insensitive atoms,
495 time values and atom lists; censoredHeaders can now be configured.
496 * No longer censors User-Agent. Blame Beppe and Alain.
497 * Changed the handling of hop-by-hop HTTP headers to deal with multiple
499 * Made client-side errors and successful revalidation no longer
500 close the connection.
501 * Fixed a bug that caused the allocation of an extraneous 2MB (!)
502 at startup. Polipo can run in 100KB once again.
503 * Fixed a refcounting bug and some incorrect frees that could
504 lead to crashes when recovering from a server-side error.
505 * Fixed a bug with POST/PUT that could trigger a failed assertion.
506 * Made sure that POST/PUT don't get scheduled in multiple pieces.
508 17 February 2003: Polipo 0.2
510 * Fixed an incorrect assertion that could cause crashes when the
512 * Fixed (hopefully) logic for 304 replies.
513 * Minor tweaks to scheduling that cause some speed increase when the
514 client is pipelining and the server is fast.
515 * Minor bug fixes and cleanups.
516 * Macro-ified do_log and friends.
518 3 February 2003: Polipo 0.1
520 * Initial public release.