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