1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
5 <title>What's New in this Release</title>
6 <meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.79">
7 <link rel="HOME" title="Privoxy 3.0.27 User Manual" href="index.html">
8 <link rel="PREVIOUS" title="Installation" href="installation.html">
9 <link rel="NEXT" title="Quickstart to Using Privoxy" href="quickstart.html">
10 <link rel="STYLESHEET" type="text/css" href="../p_doc.css">
11 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
12 <link rel="STYLESHEET" type="text/css" href="p_doc.css">
14 <body class="SECT1" bgcolor="#EEEEEE" text="#000000" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <div class="NAVHEADER">
16 <table summary="Header navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
18 <th colspan="3" align="center">Privoxy 3.0.27 User Manual</th>
21 <td width="10%" align="left" valign="bottom"><a href="installation.html" accesskey="P">Prev</a></td>
22 <td width="80%" align="center" valign="bottom"></td>
23 <td width="10%" align="right" valign="bottom"><a href="quickstart.html" accesskey="N">Next</a></td>
26 <hr align="left" width="100%">
29 <h1 class="SECT1"><a name="WHATSNEW" id="WHATSNEW">3. What's New in this Release</a></h1>
30 <p><span class="APPLICATION">Privoxy 3.0.27</span> stable scales better in multi-user environments and brings a
31 couple of tuning directives.</p>
34 <p>General improvements:</p>
37 <p>Add a receive-buffer-size directive which can be used to set the size of the previously statically
38 allocated buffer in handle_established_connection(). Increasing the buffer size increases Privoxy's memory
39 usage but can lower the number of context switches and thereby reduce the CPU usage and potentially
40 increase the throughput. This is mostly relevant for fast network connections and large downloads that
41 don't require filtering. Sponsored by: Robert Klemme</p>
44 <p>Add a listen-backlog directive which specifies the backlog value passed to listen(). Sponsored by:
48 <p>Add an enable-accept-filter directive which allows to toggle accept filter support at run time when
49 compiled with FEATURE_ACCEPT_FILTER support. It makes testing more convenient and now that it's optional we
50 can emit an error message if enabling the accept filter fails. Sponsored by: Robert Klemme</p>
53 <p>Add a delay-response{} action. This is useful to tar pit JavaScript requests that are endlessly retried
54 in case of blocks. It can also be used to simulate a slow Internet connection. Sponsored by: Robert
58 <p>Add a 'trusted-cgi-referrer' directive. It allows to configure another page or site that can be used to
59 reach sensitive CGI resources. Sponsored by: Robert Klemme</p>
62 <p>Add a --fuzz mode which exposes Privoxy internals to input from files or stdout. Mainly tested with
63 American Fuzzy Lop. For details see: https://www.fabiankeil.de/talks/fuzzing-on-freebsd/ This work was
64 partially funded with donations and done as part of the Privoxy month in 2015.</p>
67 <p>Consistently use the U(ngreedy) flag in the 'img-reorder' filter.</p>
70 <p>listen_loop(): Reuse a single thread attribute object The object doesn't change and creating a new one
71 for every thread is a waste of (CPU) time. Sponsored by: Robert Klemme</p>
74 <p>Free csp resources in the thread that belongs to the csp instead of the main thread which has enough on
75 its plate already. Sponsored by: Robert Klemme</p>
78 <p>Improve 'socket timeout reached' message. Log the timeout that was triggered and downgrade the log level
79 to LOG_LEVEL_CONNECT to reduce the log noise with common debug settings. The timeout isn't necessary the
80 result of an error and usually merely indicates that Privoxy's socket timeout is lower than the relevant
81 timeouts used by client and server. Sponsored by: Robert Klemme</p>
84 <p>Explicitly taint the server socket in case of CONNECT requests. This doesn't fix any known problems, but
85 makes some log messages less confusing.</p>
88 <p>Let write_pid_file() terminate if the pid file can't be opened. Logging the issue at info level is
92 <p>log_error(): Reduce the mutex-protected area by not using a heap-allocated buffer that is shared between
93 all threads. This increases performance and reduces the latency with verbose debug settings and multiple
94 concurrent connections. Sponsored by: Robert Klemme</p>
97 <p>Let zalloc() use calloc() if it's available. In some situations using calloc() can be faster than
98 malloc() + memset() and it should never be slower. In the real world the impact of this change is not
99 expected to be noticeable. Sponsored by: Robert Klemme</p>
102 <p>Never use select() when poll() is available. On most platforms select() is limited by FD_SETSIZE while
103 poll() is not. This was a scaling issue for multi-user setups. Using poll() has no downside other than the
104 usual risk that code modifications may introduce new bugs that have yet to be found and fixed. At least in
105 theory this commit could also reduce the latency when there are lots of connections and select() would use
106 "bit fields in arrays of integers" to store file descriptors. Another side effect is that Privoxy no longer
107 has to stop monitoring the client sockets when pipelined requests are waiting but can't be read yet. This
108 code keeps the select()-based code behind ifdefs for now but hopefully it can be removed soonish to make
109 the code more readable. Sponsored by: Robert Klemme</p>
112 <p>Add a 'reproducible-tarball-dist' target. It's currently separate from the "tarball-dist" target because
113 it requires a tar implementation with mtree spec support. It's far from being perfect and does not enforce
114 a reproducible mode, but it's better than nothing.</p>
117 <p>Use arc4random() if it's available. While Privoxy doesn't need high quality pseudo-random numbers
118 there's no reason not to use them when we can and this silences a warning emitted by code checkers that
119 can't tell whether or not the quality matters.</p>
122 <p>Show the FEATURE_EXTERNAL_FILTERS status on the status page. Better late than never. Previously a couple
123 of tests weren't executed as Privoxy-Regression-Test couldn't detect that the FEATURE_EXTERNAL_FILTERS
124 dependency was satisfied.</p>
127 <p>Ditch FEATURE_IMAGE_DETECT_MSIE. It's an obsolete workaround we inherited from Junkbuster and was
128 already disabled by default. Users that feel the urge to work around issues with image requests coming from
129 an Internet Explorer version from more than 15 years ago can still do this using tags.</p>
132 <p>Consistently use strdup_or_die() instead of strdup() in cases where allocation failures aren't expected.
133 Using strdup_or_die() allows to remove a couple of explicit error checks which slightly reduces the size of
137 <p>Insert a refresh tag into the /client-tags CGI page when serving it while a client-specific tag is
138 temporarily enabled. This makes it less likely that the user ends up looking at tag state that is out of
142 <p>Use absolute URLs in the client-tag forms. It's more consistent with the rest of the CGI page URLs and
143 makes it more convenient to copy the forms to external pages.</p>
146 <p>cgi_error_disabled(): Use status code 403 and an appropriate response line</p>
149 <p>Use a dedicated CGI handler to deal with tag-toggle requests As a result the /client-tags page is now
150 safe to reach without trusted Referer header which makes bookmarking or linking to it more convenient.
151 Finally, refreshing the /client-tags page to show the current state can no longer unintentionally repeat
152 the previous toggle request.</p>
155 <p>Don't add a "Connection" header for CONNECT requests. Explicitly sending "Connection: close" is not
156 necessary and apparently it causes problems with some forwarding proxies that will close the connection
157 prematurely. Reported by Marc Thomas.</p>
160 <p>Fix compiler warnings.</p>
168 <p>rfc2553_connect_to(): Properly detect and log when poll() reached the time out. Previously this was
169 logged as: Could not connect to [...]: No error: 0. which isn't very helpful. Sponsored by: Robert
173 <p>add_tag_for_client(): Set time_to_live properly. Previously the time_to_live was always set for the
174 first tag. Attempts to temporarily enable a tag would result in enabling it permanently unless no tag was
178 <p>Revert r1.165 which didn't perform as advertised. While the idea was to use "https:// when creating
179 links for the user manual on the website", the actual effect was to use "https://" when Privoxy was
180 supposed to serve the user manual itself. Reported by Yossi Zahn on Privoxy-devel@.</p>
183 <p>socks5_connect(): Fail in case of unsupported address types. Previously they would not be detected right
184 away and Privoxy would fail later on with an error message that didn't make it obvious that the problem was
185 socks-related. So far, no such problems have actually been reported.</p>
188 <p>socks5_connect(): Properly deal with socks replies that contain IPv6 addresses. Previously parts of the
189 reply were left unread and later on treated as invalid HTTP response data. Fixes #904 reported by Danny
190 Goossen who also provided the initial version of this patch.</p>
195 <p>Action file improvements:</p>
198 <p>Unblock 'msdn.microsoft.com/'. It (presumably) isn't used to serve the kind of ads Privoxy should block
199 by default but happens to serve lots of pages with URLs that are likely to result in false positives.
200 Reported by bugreporter1694 in AF#939.</p>
203 <p>Disable gif deanimation for requests tagged with CSS-REQUEST. The action will ignore content that isn't
204 considered text anyway and explicitly disabling it makes this more obvious if "action" debugging (debug
205 65536) is enabled while "gif deanimation" debugging (debug 256) isn't.</p>
208 <p>Explicitly disable HTML filters for requests with CSS-REQUEST tag. The filters are unlikely to break CSS
209 files but executing them without (intentionally) getting any hits is a waste of cpu time and makes the log
210 more noisy when running with "debug 64".</p>
213 <p>Unblock 'adventofcode.com/'. Reported by Clint Adams in Debian bug #848211. Fixes Roland's AF#937.</p>
216 <p>Unblock 'adlibris.com'. Reported by Wyrex in #935</p>
219 <p>Unblock .golang.org/</p>
222 <p>Add fast-redirects exception for '.youtube.com/.*origin=http'</p>
227 <p>Privoxy-Log-Parser:</p>
230 <p>Don't gather host and resource statistics if they aren't requested. While the performance impact seems
231 negligible this significantly reduces the memory usage if there are lots of requests.</p>
234 <p>Bump version as the behaviour (slightly) changed.</p>
237 <p>Count connection failures as well in statistics mode. Sponsored by: Robert Klemme</p>
240 <p>Count connection timeouts as well in statistics mode. Sponsored by: Robert Klemme</p>
243 <p>Fix an 'uninitialized value' warning when generating statistics for a log file without response headers.
244 While privoxy-log-parser was supposed to detect this already, the check was flawed and the message the user
245 didn't see was somewhat confusing anyway. Now the message is less confusing, more helpful and actually
246 printed. Reported by: Robert Klemme</p>
251 <p>Documentation improvements:</p>
254 <p>Refer to the git sources instead of CVS.</p>
257 <p>Use GNU/Linux when referring to the OS instead of the kernel.</p>
260 <p>Add FAQ entry for what to do if editing the config file is access denied.</p>
263 <p>Add brief HTTP/2 FAQ.</p>
266 <p>Add a small fuzzing section to the developer documentation.</p>
269 <p>Add a client-header-tagger{client-ip-address} example.</p>
272 <p>Stop suggesting that Privoxy is an anonymizing proxy. The term could lead to Privoxy users
273 overestimating what it can do on its own (without Tor).</p>
276 <p>Make it more obvious that SPI accepts Paypal, too. Currently most donations are made through the Paypal
277 account managed by Zwiebelfreunde e.V. and a more even distribution would be useful.</p>
280 <p>Suggest to log applying actions as well when reproducing problems.</p>
283 <p>Explicitly mention that Privoxy binaries are built by individuals on their own systems. Buyer
287 <p>Mention the release feed on the homepage.</p>
290 <p>Remove a mysterious comment with a GNU FDL link as it isn't useful and could confuse license scanners.
291 In May 2002 it was briefly claimed that "this document" was covered by the GNU FDL. The commit message
292 (r1.5) doesn't explain the motivation or whether all copyright holders were actually asked and agreed to
293 the declared license change. It's thus hard to tell whether or not the license change was legit, but
294 luckily two days later the "doc license" was "put" "back to GPL" anyway (r1.6). At the same time the
295 offending comment with a link to the FDL (not the GPL) was added for no obvious reason. Now it's gone
301 <p>Regression tests:</p>
304 <p>Bump for-privoxy-version to 3.0.27 as we now rely on untrusted CGI request being rejected with status
305 code 403 (instead of 200).</p>
308 <p>Update test for /send-stylesheet and add another one</p>
316 <p>Consistently use https:// when linking to the Privoxy website.</p>
319 <p>Remove SourceForge references in Copyright header.</p>
322 <p>Remove a couple of SourceForge references in a comment. While at it, fix the grammar.</p>
325 <p>Move the site-specific documentation block before the generic one. While most Privoxy installations
326 don't have a site-specific documentation block, in cases were it exists it's likely to be more relevant
327 than the generic one. Showing it first makes it less likely that users stop reading before they reach it,
328 especially on pages that don't fit on the screen.</p>
333 <p>Build system improvements:</p>
336 <p>Prefer openjade to jade. On some systems Jade produces HTML with unescaped ampersands in URLs.</p>
339 <p>Prefer OpenSP to SP to be consistent.</p>
342 <p>Have Docbook generated HTML files be straight ASCII. Dealing with a mixture of ISO-8859 and UTF-8 files
346 <p>Echo the filename to stderr for 'make dok-tidy'. Make it a bit easier to find errors in docbook
350 <p>Warn when still using select().</p>
353 <p>Warn when compiling without calloc().</p>
356 <p>Make it more obvious that the --with-fdsetsize configure switch is pointless if poll() is available.</p>
359 <p>Remove support for AmigaOS.</p>
362 <p>Update windows build system to use supported software. The cygwin gcc -mno-cygwin option is no longer
363 supported, so convert the windows build system to use the cygwin cross-compiler to build "native" code.</p>
366 <p>Add --enable-static-linking option for configure does the same thing as LDFLAGS=-static; ./configure but
367 nicer than mixing evars and configure options.</p>
373 <h2 class="SECT2"><a name="UPGRADERSNOTE" id="UPGRADERSNOTE">3.1. Note to Upgraders</a></h2>
374 <p>A quick list of things to be aware of before upgrading from earlier versions of <span class=
375 "APPLICATION">Privoxy</span>:</p>
378 <p>The recommended way to upgrade <span class="APPLICATION">Privoxy</span> is to backup your old
379 configuration files, install the new ones, verify that <span class="APPLICATION">Privoxy</span> is working
380 correctly and finally merge back your changes using <span class="APPLICATION">diff</span> and maybe
381 <span class="APPLICATION">patch</span>.</p>
382 <p>There are a number of new features in each <span class="APPLICATION">Privoxy</span> release and most of
383 them have to be explicitly enabled in the configuration files. Old configuration files obviously don't do
384 that and due to syntax changes using old configuration files with a new <span class=
385 "APPLICATION">Privoxy</span> isn't always possible anyway.</p>
388 <p>Note that some installers remove earlier versions completely, including configuration files, therefore you
389 should really save any important configuration files!</p>
392 <p>On the other hand, other installers don't overwrite existing configuration files, thinking you will want
393 to do that yourself.</p>
396 <p>In the default configuration only fatal errors are logged now. You can change that in the <a href=
397 "config.html#DEBUG">debug section</a> of the configuration file. You may also want to enable more verbose
398 logging until you verified that the new <span class="APPLICATION">Privoxy</span> version is working as
402 <p>Three other config file settings are now off by default: <a href=
403 "config.html#ENABLE-REMOTE-TOGGLE">enable-remote-toggle</a>, <a href=
404 "config.html#ENABLE-REMOTE-HTTP-TOGGLE">enable-remote-http-toggle</a>, and <a href=
405 "config.html#ENABLE-EDIT-ACTIONS">enable-edit-actions</a>. If you use or want these, you will need to
406 explicitly enable them, and be aware of the security issues involved.</p>
411 <div class="NAVFOOTER">
412 <hr align="left" width="100%">
413 <table summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
415 <td width="33%" align="left" valign="top"><a href="installation.html" accesskey="P">Prev</a></td>
416 <td width="34%" align="center" valign="top"><a href="index.html" accesskey="H">Home</a></td>
417 <td width="33%" align="right" valign="top"><a href="quickstart.html" accesskey="N">Next</a></td>
420 <td width="33%" align="left" valign="top">Installation</td>
421 <td width="34%" align="center" valign="top"> </td>
422 <td width="33%" align="right" valign="top">Quickstart to Using Privoxy</td>