Rebuild docs with updated ChangeLog
[privoxy.git] / doc / webserver / user-manual / whatsnew.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3 <html>
4 <head>
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">
13 </head>
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">
17       <tr>
18         <th colspan="3" align="center">Privoxy 3.0.27 User Manual</th>
19       </tr>
20       <tr>
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>
24       </tr>
25     </table>
26     <hr align="left" width="100%">
27   </div>
28   <div class="SECT1">
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>
32     <ul>
33       <li>
34         <p>General improvements:</p>
35         <ul>
36           <li>
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>
42           </li>
43           <li>
44             <p>Add a listen-backlog directive which specifies the backlog value passed to listen(). Sponsored by:
45             Robert Klemme</p>
46           </li>
47           <li>
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>
51           </li>
52           <li>
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
55             Klemme</p>
56           </li>
57           <li>
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>
60           </li>
61           <li>
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>
65           </li>
66           <li>
67             <p>Consistently use the U(ngreedy) flag in the 'img-reorder' filter.</p>
68           </li>
69           <li>
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>
72           </li>
73           <li>
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>
76           </li>
77           <li>
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>
82           </li>
83           <li>
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>
86           </li>
87           <li>
88             <p>Let write_pid_file() terminate if the pid file can't be opened. Logging the issue at info level is
89             unlikely to help.</p>
90           </li>
91           <li>
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>
95           </li>
96           <li>
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>
100           </li>
101           <li>
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>
110           </li>
111           <li>
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>
115           </li>
116           <li>
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>
120           </li>
121           <li>
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>
125           </li>
126           <li>
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>
130           </li>
131           <li>
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
134             the binary.</p>
135           </li>
136           <li>
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
139             date.</p>
140           </li>
141           <li>
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>
144           </li>
145           <li>
146             <p>cgi_error_disabled(): Use status code 403 and an appropriate response line</p>
147           </li>
148           <li>
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>
153           </li>
154           <li>
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>
158           </li>
159           <li>
160             <p>Fix compiler warnings.</p>
161           </li>
162         </ul>
163       </li>
164       <li>
165         <p>Bug fixes:</p>
166         <ul>
167           <li>
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
170             Klemme</p>
171           </li>
172           <li>
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
175             enabled already.</p>
176           </li>
177           <li>
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>
181           </li>
182           <li>
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>
186           </li>
187           <li>
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>
191           </li>
192         </ul>
193       </li>
194       <li>
195         <p>Action file improvements:</p>
196         <ul>
197           <li>
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>
201           </li>
202           <li>
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>
206           </li>
207           <li>
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>
211           </li>
212           <li>
213             <p>Unblock 'adventofcode.com/'. Reported by Clint Adams in Debian bug #848211. Fixes Roland's AF#937.</p>
214           </li>
215           <li>
216             <p>Unblock 'adlibris.com'. Reported by Wyrex in #935</p>
217           </li>
218           <li>
219             <p>Unblock .golang.org/</p>
220           </li>
221           <li>
222             <p>Add fast-redirects exception for '.youtube.com/.*origin=http'</p>
223           </li>
224         </ul>
225       </li>
226       <li>
227         <p>Privoxy-Log-Parser:</p>
228         <ul>
229           <li>
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>
232           </li>
233           <li>
234             <p>Bump version as the behaviour (slightly) changed.</p>
235           </li>
236           <li>
237             <p>Count connection failures as well in statistics mode. Sponsored by: Robert Klemme</p>
238           </li>
239           <li>
240             <p>Count connection timeouts as well in statistics mode. Sponsored by: Robert Klemme</p>
241           </li>
242           <li>
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>
247           </li>
248         </ul>
249       </li>
250       <li>
251         <p>Documentation improvements:</p>
252         <ul>
253           <li>
254             <p>Refer to the git sources instead of CVS.</p>
255           </li>
256           <li>
257             <p>Use GNU/Linux when referring to the OS instead of the kernel.</p>
258           </li>
259           <li>
260             <p>Add FAQ entry for what to do if editing the config file is access denied.</p>
261           </li>
262           <li>
263             <p>Add brief HTTP/2 FAQ.</p>
264           </li>
265           <li>
266             <p>Add a small fuzzing section to the developer documentation.</p>
267           </li>
268           <li>
269             <p>Add a client-header-tagger{client-ip-address} example.</p>
270           </li>
271           <li>
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>
274           </li>
275           <li>
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>
278           </li>
279           <li>
280             <p>Suggest to log applying actions as well when reproducing problems.</p>
281           </li>
282           <li>
283             <p>Explicitly mention that Privoxy binaries are built by individuals on their own systems. Buyer
284             beware!</p>
285           </li>
286           <li>
287             <p>Mention the release feed on the homepage.</p>
288           </li>
289           <li>
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
296             again.</p>
297           </li>
298         </ul>
299       </li>
300       <li>
301         <p>Regression tests:</p>
302         <ul>
303           <li>
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>
306           </li>
307           <li>
308             <p>Update test for /send-stylesheet and add another one</p>
309           </li>
310         </ul>
311       </li>
312       <li>
313         <p>Templates:</p>
314         <ul>
315           <li>
316             <p>Consistently use https:// when linking to the Privoxy website.</p>
317           </li>
318           <li>
319             <p>Remove SourceForge references in Copyright header.</p>
320           </li>
321           <li>
322             <p>Remove a couple of SourceForge references in a comment. While at it, fix the grammar.</p>
323           </li>
324           <li>
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>
329           </li>
330         </ul>
331       </li>
332       <li>
333         <p>Build system improvements:</p>
334         <ul>
335           <li>
336             <p>Prefer openjade to jade. On some systems Jade produces HTML with unescaped ampersands in URLs.</p>
337           </li>
338           <li>
339             <p>Prefer OpenSP to SP to be consistent.</p>
340           </li>
341           <li>
342             <p>Have Docbook generated HTML files be straight ASCII. Dealing with a mixture of ISO-8859 and UTF-8 files
343             is problematic.</p>
344           </li>
345           <li>
346             <p>Echo the filename to stderr for 'make dok-tidy'. Make it a bit easier to find errors in docbook
347             generated HTML.</p>
348           </li>
349           <li>
350             <p>Warn when still using select().</p>
351           </li>
352           <li>
353             <p>Warn when compiling without calloc().</p>
354           </li>
355           <li>
356             <p>Make it more obvious that the --with-fdsetsize configure switch is pointless if poll() is available.</p>
357           </li>
358           <li>
359             <p>Remove support for AmigaOS.</p>
360           </li>
361           <li>
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>
364           </li>
365           <li>
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>
368           </li>
369         </ul>
370       </li>
371     </ul>
372     <div class="SECT2">
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>
376       <ul>
377         <li>
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>
386         </li>
387         <li>
388           <p>Note that some installers remove earlier versions completely, including configuration files, therefore you
389           should really save any important configuration files!</p>
390         </li>
391         <li>
392           <p>On the other hand, other installers don't overwrite existing configuration files, thinking you will want
393           to do that yourself.</p>
394         </li>
395         <li>
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
399           expected.</p>
400         </li>
401         <li>
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>
407         </li>
408       </ul>
409     </div>
410   </div>
411   <div class="NAVFOOTER">
412     <hr align="left" width="100%">
413     <table summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
414       <tr>
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>
418       </tr>
419       <tr>
420         <td width="33%" align="left" valign="top">Installation</td>
421         <td width="34%" align="center" valign="top">&nbsp;</td>
422         <td width="33%" align="right" valign="top">Quickstart to Using Privoxy</td>
423       </tr>
424     </table>
425   </div>
426 </body>
427 </html>