privoxy.git
15 years agoUpdate description for 3.0.14 beta.
Fabian Keil [Sat, 18 Jul 2009 16:00:17 +0000 (16:00 +0000)]
Update description for 3.0.14 beta.

15 years agoAdd most of the changes in 3.0.14 to the "What's New" section.
Fabian Keil [Sat, 18 Jul 2009 15:49:23 +0000 (15:49 +0000)]
Add most of the changes in 3.0.14 to the "What's New" section.

15 years ago- Move less interesting changes to the bottom.
Fabian Keil [Sat, 18 Jul 2009 14:59:25 +0000 (14:59 +0000)]
- Move less interesting changes to the bottom.
- Cosmetics.

15 years agoAdd changes in 3.0.14 BETA.
Fabian Keil [Sat, 18 Jul 2009 12:22:44 +0000 (12:22 +0000)]
Add changes in 3.0.14 BETA.

15 years agoChange code status to BETA.
Fabian Keil [Sat, 18 Jul 2009 12:21:03 +0000 (12:21 +0000)]
Change code status to BETA.

15 years agoDon't add a Proxy-Connection header if there already is one.
Fabian Keil [Sat, 18 Jul 2009 12:20:05 +0000 (12:20 +0000)]
Don't add a Proxy-Connection header if there already is one.

15 years agoDon't describe the action files in the FAQ when we can simply link to the description...
Fabian Keil [Sat, 18 Jul 2009 12:18:52 +0000 (12:18 +0000)]
Don't describe the action files in the FAQ when we can simply link to the description in the User Manual.

15 years agoAccept and ignore: The server didn't specify how long the connection will stay open...
Fabian Keil [Tue, 14 Jul 2009 18:40:48 +0000 (18:40 +0000)]
Accept and ignore: The server didn't specify how long the connection will stay open. Assume it's only a second.

15 years agoIn parse_client_request(), assume a request is complete if we got the whole header...
Fabian Keil [Tue, 14 Jul 2009 18:02:25 +0000 (18:02 +0000)]
In parse_client_request(), assume a request is complete if we got the whole header and the method doesn't imply a body.

Should break less non-traditional requests than the previous hack.

15 years agoIf the server doesn't specify how long the connection stays alive, err on the safe...
Fabian Keil [Tue, 14 Jul 2009 17:50:34 +0000 (17:50 +0000)]
If the server doesn't specify how long the connection stays alive, err on the safe side of caution and assume it's only a second.

15 years agoBack out the last commit so it can return with related changes.
Fabian Keil [Tue, 14 Jul 2009 17:45:05 +0000 (17:45 +0000)]
Back out the last commit so it can return with related changes.
The bug it fixes hasn't actually been committed.

15 years agoMust not reuse flag masks.
Fabian Keil [Mon, 13 Jul 2009 19:16:15 +0000 (19:16 +0000)]
Must not reuse flag masks.

15 years agoAccept and ignore: Removing 'Connection: close' to imply keep-alive.
Fabian Keil [Mon, 13 Jul 2009 17:17:47 +0000 (17:17 +0000)]
Accept and ignore: Removing 'Connection: close' to imply keep-alive.

15 years agoTake the latency into account when evaluating whether or not to reuse a connection.
Fabian Keil [Mon, 13 Jul 2009 17:12:28 +0000 (17:12 +0000)]
Take the latency into account when evaluating whether or not to reuse a connection.

15 years agoIf keep-alive support is disabled, don't let the client's Keep-Alive header through.
Fabian Keil [Mon, 13 Jul 2009 17:10:57 +0000 (17:10 +0000)]
If keep-alive support is disabled, don't let the client's Keep-Alive header through.

Anonymously reported in #2818986.

15 years agoTimestamp the connection at the end of chat().
Fabian Keil [Mon, 13 Jul 2009 17:08:41 +0000 (17:08 +0000)]
Timestamp the connection at the end of chat().

The timeout doesn't start until the whole request has been received.

15 years agoIf the socket isn't reusable, don't bother remembering the connection.
Fabian Keil [Mon, 13 Jul 2009 17:05:36 +0000 (17:05 +0000)]
If the socket isn't reusable, don't bother remembering the connection.

15 years agoAccept and ignore: The server still wants to talk, but the client hung up on us.
Fabian Keil [Sun, 12 Jul 2009 09:20:09 +0000 (09:20 +0000)]
Accept and ignore: The server still wants to talk, but the client hung up on us.

15 years agoIn the year 2525 ... header time randomization fails on mingw32.
Fabian Keil [Sat, 11 Jul 2009 16:30:39 +0000 (16:30 +0000)]
In the year 2525 ... header time randomization fails on mingw32.

15 years agoSet the timestamp directly after receiving the response headers.
Fabian Keil [Sat, 11 Jul 2009 14:49:09 +0000 (14:49 +0000)]
Set the timestamp directly after receiving the response headers.

When checking if the server socket is still usable, we have to take the
time into account it took the client to decide that it's done talking.

15 years agoDon't bother reading from the server if the client already hung up on us.
Fabian Keil [Sat, 11 Jul 2009 14:39:34 +0000 (14:39 +0000)]
Don't bother reading from the server if the client already hung up on us.

15 years agoUpdate regression tests for the keep-alive changes.
Fabian Keil [Sat, 11 Jul 2009 11:20:53 +0000 (11:20 +0000)]
Update regression tests for the keep-alive changes.

15 years agoBack out 1.187 for now. There has to be a better way.
Fabian Keil [Sat, 11 Jul 2009 11:20:12 +0000 (11:20 +0000)]
Back out 1.187 for now. There has to be a better way.

15 years agoFor HTTP/1.1 requests other than CONNECT requests, assume persistence unless the...
Fabian Keil [Sat, 11 Jul 2009 11:17:35 +0000 (11:17 +0000)]
For HTTP/1.1 requests other than CONNECT requests, assume persistence unless the client says otherwise.

15 years agoGarbage collect get_appropiate_connection_header() as we no longer use it.
Fabian Keil [Sat, 11 Jul 2009 11:16:19 +0000 (11:16 +0000)]
Garbage collect get_appropiate_connection_header() as we no longer use it.

15 years agoDon't set 'Connection: keep-alive' headers in server_connection_adder() either.
Fabian Keil [Sat, 11 Jul 2009 11:15:53 +0000 (11:15 +0000)]
Don't set 'Connection: keep-alive' headers in server_connection_adder() either.

15 years agoIn client_connection_header_adder(), add a 'Connection: close' header or none at...
Fabian Keil [Sat, 11 Jul 2009 11:15:14 +0000 (11:15 +0000)]
In client_connection_header_adder(), add a 'Connection: close' header or none at all.

Suggested by Lee.

15 years agoHashes in git object URLs may contain 'ad's. Deal with it.
Fabian Keil [Sat, 11 Jul 2009 11:13:26 +0000 (11:13 +0000)]
Hashes in git object URLs may contain 'ad's. Deal with it.

15 years agodon't need the extra time() call
Lee [Wed, 8 Jul 2009 23:18:05 +0000 (23:18 +0000)]
don't need the extra time() call

15 years agoHighlight: Client keep-alive timeout is 20. Sticking with 10.
Fabian Keil [Wed, 8 Jul 2009 17:26:46 +0000 (17:26 +0000)]
Highlight: Client keep-alive timeout is 20. Sticking with 10.

15 years agoFix a log message in client_keep_alive().
Fabian Keil [Wed, 8 Jul 2009 17:25:37 +0000 (17:25 +0000)]
Fix a log message in client_keep_alive().

15 years agoRevert r261 as it would sabotage NTLM authentication.
Fabian Keil [Tue, 7 Jul 2009 16:42:26 +0000 (16:42 +0000)]
Revert r261 as it would sabotage NTLM authentication.

15 years agoVerizon DNS server returns addr of their 'search' page instead of domain not found.
Lee [Tue, 7 Jul 2009 16:35:01 +0000 (16:35 +0000)]
Verizon DNS server returns addr of their 'search' page instead of domain not found.

15 years agoFixes Bugs item #2816541 - http download stops at 0.3GB (mingw32)
Lee [Sun, 5 Jul 2009 20:43:14 +0000 (20:43 +0000)]
Fixes Bugs item #2816541 - http download stops at 0.3GB (mingw32)
  Microsoft has their own way - %I64U instead of %llu for long long unsigned.

15 years agoMention the tainted socket in mark_server_socket_tainted().
Fabian Keil [Sun, 5 Jul 2009 13:24:04 +0000 (13:24 +0000)]
Mention the tainted socket in mark_server_socket_tainted().

15 years agoHighlight: Marking the server socket 7 tainted.
Fabian Keil [Sun, 5 Jul 2009 12:11:18 +0000 (12:11 +0000)]
Highlight: Marking the server socket 7 tainted.

15 years agoAlso react to the client's Keep-Alive header.
Fabian Keil [Sun, 5 Jul 2009 12:04:46 +0000 (12:04 +0000)]
Also react to the client's Keep-Alive header.

15 years agoComment spelling fix.
Fabian Keil [Sun, 5 Jul 2009 12:02:54 +0000 (12:02 +0000)]
Comment spelling fix.

15 years agoMention the offending socket in the 'Empty server or forwarder response' message.
Fabian Keil [Sun, 5 Jul 2009 12:02:25 +0000 (12:02 +0000)]
Mention the offending socket in the 'Empty server or forwarder response' message.

15 years agoIf we decided not to keep the connection to the server alive, don't reuse a remembere...
Fabian Keil [Sun, 5 Jul 2009 12:01:45 +0000 (12:01 +0000)]
If we decided not to keep the connection to the server alive, don't reuse a remembered connection either.

15 years agoIf we decided not to keep the connection to the server alive, but have a reusable...
Fabian Keil [Sun, 5 Jul 2009 12:00:53 +0000 (12:00 +0000)]
If we decided not to keep the connection to the server alive, but have a reusable connection open, close it and create a new one.

15 years agoIn mark_server_socket_tainted(), update the log message and stop unsetting CSP_FLAG_S...
Fabian Keil [Sun, 5 Jul 2009 12:00:09 +0000 (12:00 +0000)]
In mark_server_socket_tainted(), update the log message and stop unsetting CSP_FLAG_SERVER_CONNECTION_KEEP_ALIVE which is no longer necessary.

15 years agoAccept the recently added LOG_LEVEL_CONNECT messages:
Fabian Keil [Tue, 30 Jun 2009 19:08:37 +0000 (19:08 +0000)]
Accept the recently added LOG_LEVEL_CONNECT messages:
Complete client request received.
Possible pipeline attempt detected. The connection will not be kept alive and we will only serve the first request.
POST request detected. The connection will not be kept alive.

15 years agoIf the status code isn't 200, don't assume a missing Connection header for a HTTP...
Fabian Keil [Tue, 30 Jun 2009 18:32:04 +0000 (18:32 +0000)]
If the status code isn't 200, don't assume a missing Connection header for a HTTP/1.1 response implies keep-alive.

Seems to work around problems with some servers.

15 years agoIf we think we already got a complete request, don't try to read from the client...
Fabian Keil [Sun, 28 Jun 2009 14:31:43 +0000 (14:31 +0000)]
If we think we already got a complete request, don't try to read from the client until we're ready again.

If we notice that we got more than a single request, mark
the server socket tainted and only serve the first request.

15 years agoRemove '.mandrakelinux.com/en/ftp.php3' from the -hide-referer section.
Fabian Keil [Sun, 28 Jun 2009 12:41:29 +0000 (12:41 +0000)]
Remove '.mandrakelinux.com/en/ftp.php3' from the -hide-referer section.
Reported by Frédéric Crozat in #2806624.

15 years agoOr not.
Fabian Keil [Sat, 27 Jun 2009 15:28:47 +0000 (15:28 +0000)]
Or not.

15 years agoHighlight:
Fabian Keil [Sat, 27 Jun 2009 15:10:16 +0000 (15:10 +0000)]
Highlight:
Appended client IP address to X-Forwarded-For: 10.0.0.2, 10.0.0.1

15 years agoIgnore messages with "Unknown log level".
Fabian Keil [Sat, 27 Jun 2009 15:09:33 +0000 (15:09 +0000)]
Ignore messages with "Unknown log level".

15 years agoDon't set CSP_FLAG_CLIENT_CONNECTION_KEEP_ALIVE in case of HTTP/1.0 requests.
Fabian Keil [Sat, 27 Jun 2009 11:25:33 +0000 (11:25 +0000)]
Don't set CSP_FLAG_CLIENT_CONNECTION_KEEP_ALIVE in case of HTTP/1.0 requests.

Otherwise the client might hang after receiving
all the data until the connection times out.

15 years agoDisable fast-redirects for '.redbot.org/'.
Fabian Keil [Sat, 27 Jun 2009 11:23:51 +0000 (11:23 +0000)]
Disable fast-redirects for '.redbot.org/'.

15 years agoRemove a useless 'because' in a log message.
Fabian Keil [Sat, 27 Jun 2009 11:22:52 +0000 (11:22 +0000)]
Remove a useless 'because' in a log message.

15 years agoAdd '/.*omniture.*\.js' to the list of blocked user-tracking scripts.
Fabian Keil [Sun, 21 Jun 2009 18:20:08 +0000 (18:20 +0000)]
Add '/.*omniture.*\.js' to the list of blocked user-tracking scripts.

Reported by Dominique Schramm in #2808098.

15 years agoMore truth in advertisements. Some features aren't available on all platforms.
Fabian Keil [Sun, 21 Jun 2009 18:17:04 +0000 (18:17 +0000)]
More truth in advertisements. Some features aren't available on all platforms.

Also remove multi-threading, improved signal handling and the
"true daemon mode" from the list. The user is unlikely to get
excited about them.

15 years agoTranslate * more precisely.
Fabian Keil [Sun, 21 Jun 2009 18:15:24 +0000 (18:15 +0000)]
Translate * more precisely.

15 years ago73) Factor FEATURE_CONNECTION_SHARING out of FEATURE_CONNECTION_KEEP_ALIVE ...
Fabian Keil [Sun, 21 Jun 2009 12:02:30 +0000 (12:02 +0000)]
73) Factor FEATURE_CONNECTION_SHARING out of FEATURE_CONNECTION_KEEP_ALIVE ...

15 years agoAlso use $PATH when searching for groups and id.
Fabian Keil [Sat, 20 Jun 2009 19:07:45 +0000 (19:07 +0000)]
Also use $PATH when searching for groups and id.
Should fix #2809547.

15 years agoDeclare sockaddr_storage_to_ip() and match_sockaddr() static.
Fabian Keil [Fri, 19 Jun 2009 15:50:53 +0000 (15:50 +0000)]
Declare sockaddr_storage_to_ip() and match_sockaddr() static.

15 years agoFix parameter description for pcrs_compile_dynamic_command().
Fabian Keil [Fri, 19 Jun 2009 15:34:32 +0000 (15:34 +0000)]
Fix parameter description for pcrs_compile_dynamic_command().

15 years agoAdd a few more +hide-if-modified-since{-60} tests.
Fabian Keil [Fri, 19 Jun 2009 13:26:18 +0000 (13:26 +0000)]
Add a few more +hide-if-modified-since{-60} tests.

15 years agoAdd: 72) Use less ugly Privoxy (fav)icons.
Fabian Keil [Fri, 19 Jun 2009 13:25:38 +0000 (13:25 +0000)]
Add: 72) Use less ugly Privoxy (fav)icons.

15 years agoAdd: 71) Allow to listen on multiple addresses without having to bind to all.
Fabian Keil [Fri, 19 Jun 2009 13:24:14 +0000 (13:24 +0000)]
Add: 71) Allow to listen on multiple addresses without having to bind to all.

15 years agoDisable the +hide-if-modified-since{-60} test with 'If-Modified-Since: Thu, 1 Jan...
Fabian Keil [Thu, 18 Jun 2009 17:14:16 +0000 (17:14 +0000)]
Disable the +hide-if-modified-since{-60} test with 'If-Modified-Since: Thu, 1 Jan 1970 00:00:00 GMT' if FEATURE_PTHREAD isn't available.
It's known not to work on mingw32.

15 years agoIf strftime() fails, drop the header without replacement like we already do in case...
Fabian Keil [Thu, 18 Jun 2009 17:10:16 +0000 (17:10 +0000)]
If strftime() fails, drop the header without replacement like we already do in case of other problems.

15 years agoDon't trust gmtime() to return usable structures for dates in the past.
Fabian Keil [Wed, 17 Jun 2009 18:23:06 +0000 (18:23 +0000)]
Don't trust gmtime() to return usable structures for dates in the past.

Intended to fix the crashes anonymously reported in #2807350 and #2797798.

15 years agoIn the strftime() failure messages, put the offending header in single-quotes.
Fabian Keil [Wed, 17 Jun 2009 14:51:51 +0000 (14:51 +0000)]
In the strftime() failure messages, put the offending header in single-quotes.

15 years agoCheck for strftime() failures in server_last_modified(), too.
Fabian Keil [Wed, 17 Jun 2009 14:51:23 +0000 (14:51 +0000)]
Check for strftime() failures in server_last_modified(), too.

15 years agoFix the log message from the last commit.
Fabian Keil [Wed, 17 Jun 2009 14:50:55 +0000 (14:50 +0000)]
Fix the log message from the last commit.

15 years agoIn case of strftime() failures in client_if_modified_since(), keep the original heade...
Fabian Keil [Tue, 16 Jun 2009 15:42:28 +0000 (15:42 +0000)]
In case of strftime() failures in client_if_modified_since(), keep the original header around.

Lee's Privoxy-Regression-Test result seems to indicate that it may
fail on Windows if the generated date predates the Unix epoch.

15 years agoDon't request 'Connection: keep-alive' from the server if keep-alive-timeout is 0.
Fabian Keil [Mon, 15 Jun 2009 20:50:56 +0000 (20:50 +0000)]
Don't request 'Connection: keep-alive' from the server if keep-alive-timeout is 0.
We're not going to reuse the connection anyway.

15 years agoLet level 13 also depend on 'config line keep-alive-timeout\s+[1-9]+'.
Fabian Keil [Mon, 15 Jun 2009 20:49:09 +0000 (20:49 +0000)]
Let level 13 also depend on 'config line keep-alive-timeout\s+[1-9]+'.
Noticed by Lee.

15 years agoLet dependency_unsatisfied() properly deal with tests that depend on both config...
Fabian Keil [Mon, 15 Jun 2009 20:47:49 +0000 (20:47 +0000)]
Let dependency_unsatisfied() properly deal with tests that depend on both config lines and features.

15 years agoRemove duplicated single-quotes.
Fabian Keil [Mon, 15 Jun 2009 17:12:45 +0000 (17:12 +0000)]
Remove duplicated single-quotes.

15 years agoPatch #2806626 from Frédéric Crozat to fix a closing tag.
Fabian Keil [Mon, 15 Jun 2009 15:08:03 +0000 (15:08 +0000)]
Patch #2806626 from Frédéric Crozat to fix a closing tag.

15 years agoIn get_log_level_string(), don't hide the LOG_LEVEL_REDIRECTS
Fabian Keil [Sun, 14 Jun 2009 15:59:56 +0000 (15:59 +0000)]
In get_log_level_string(), don't hide the LOG_LEVEL_REDIRECTS
translation behind ifdef FEATURE_FAST_REDIRECTS. It's used for
redirect{} as well.

15 years agoIn case of connection timeouts or missing server data, use a Last-Modified date in...
Fabian Keil [Sun, 14 Jun 2009 14:37:08 +0000 (14:37 +0000)]
In case of connection timeouts or missing server data, use a Last-Modified date in the past as well.

15 years agoBump version to 3.0.14 UNRELEASED.
Fabian Keil [Sun, 14 Jun 2009 14:36:13 +0000 (14:36 +0000)]
Bump version to 3.0.14 UNRELEASED.

15 years agoRemove CVS $Log entries.
Fabian Keil [Sun, 14 Jun 2009 14:35:42 +0000 (14:35 +0000)]
Remove CVS $Log entries.

15 years agoFix a tokenize() regression that caused it to miss tokens with trailing comments.
Fabian Keil [Sun, 14 Jun 2009 14:33:01 +0000 (14:33 +0000)]
Fix a tokenize() regression that caused it to miss tokens with trailing comments.

This it turn caused Privoxy-Regression-Test to always execute a test
that should only be executed if enable-edit-actions is enabled.

Looks like we need a Privoxy-Regression-Test-Regression-Test.

15 years agoRebuild for 3.0.13
hal9 [Sat, 13 Jun 2009 13:56:22 +0000 (13:56 +0000)]
Rebuild for 3.0.13

15 years agoRebuild for 3.0.13 beta.
Fabian Keil [Sat, 13 Jun 2009 13:10:49 +0000 (13:10 +0000)]
Rebuild for 3.0.13 beta.

15 years agoUpdate for 3.0.13 beta.
Fabian Keil [Sat, 13 Jun 2009 12:40:44 +0000 (12:40 +0000)]
Update for 3.0.13 beta.

15 years agoUpdate for 3.0.13 beta.
Fabian Keil [Sat, 13 Jun 2009 12:32:17 +0000 (12:32 +0000)]
Update for 3.0.13 beta.

15 years agoconnect_to() doesn't return void, so the recently added malloc check shouldn't either.
Fabian Keil [Sat, 13 Jun 2009 11:37:07 +0000 (11:37 +0000)]
connect_to() doesn't return void, so the recently added malloc check shouldn't either.

15 years agoA bunch of malloc() return code checks for the HAVE_RFC2553 code.
Fabian Keil [Sat, 13 Jun 2009 11:32:52 +0000 (11:32 +0000)]
A bunch of malloc() return code checks for the HAVE_RFC2553 code.

15 years agoManually merge latest updates.
Fabian Keil [Fri, 12 Jun 2009 14:43:50 +0000 (14:43 +0000)]
Manually merge latest updates.

15 years agoRebuilt with recent changes.
Fabian Keil [Fri, 12 Jun 2009 14:34:10 +0000 (14:34 +0000)]
Rebuilt with recent changes.

15 years agoRebuilt for 3.0.13 beta.
Fabian Keil [Fri, 12 Jun 2009 14:33:34 +0000 (14:33 +0000)]
Rebuilt for 3.0.13 beta.

15 years agoUpdate entities for 3.0.13 beta.
Fabian Keil [Fri, 12 Jun 2009 14:30:59 +0000 (14:30 +0000)]
Update entities for 3.0.13 beta.

15 years agoTell crunch_reason() about RSP_REASON_NO_SERVER_DATA.
Fabian Keil [Fri, 12 Jun 2009 13:39:02 +0000 (13:39 +0000)]
Tell crunch_reason() about RSP_REASON_NO_SERVER_DATA.

15 years agoMention that sharing connections increases the changes of connection problems.
Fabian Keil [Fri, 12 Jun 2009 11:53:33 +0000 (11:53 +0000)]
Mention that sharing connections increases the changes of connection problems.

15 years agoMention the TODO list in the participate entry.
Fabian Keil [Fri, 12 Jun 2009 11:52:33 +0000 (11:52 +0000)]
Mention the TODO list in the participate entry.

15 years agoUpdate "Support and Service" section to contain links to the participate and donate...
Fabian Keil [Fri, 12 Jun 2009 11:51:58 +0000 (11:51 +0000)]
Update "Support and Service" section to contain links to the participate and donate FAQ entries.

15 years agoChange code status to beta.
Fabian Keil [Fri, 12 Jun 2009 11:04:47 +0000 (11:04 +0000)]
Change code status to beta.

15 years agoImport ChangeLog for 3.0.13 beta.
Fabian Keil [Fri, 12 Jun 2009 11:04:13 +0000 (11:04 +0000)]
Import ChangeLog for 3.0.13 beta.

15 years agoRemove a now-redundant err check.
Fabian Keil [Fri, 12 Jun 2009 11:03:03 +0000 (11:03 +0000)]
Remove a now-redundant err check.

15 years agoRemove useless comment.
Fabian Keil [Thu, 11 Jun 2009 18:29:13 +0000 (18:29 +0000)]
Remove useless comment.

15 years agoWhite-space fixes.
Fabian Keil [Thu, 11 Jun 2009 14:32:55 +0000 (14:32 +0000)]
White-space fixes.

15 years agoMention IPv6 support, update keep-alive description, remove "cookie management" section.
Fabian Keil [Thu, 11 Jun 2009 14:26:40 +0000 (14:26 +0000)]
Mention IPv6 support, update keep-alive description, remove "cookie management" section.

15 years agoProtect a keepalive flag inside FEATURE_CONNECTION_KEEP_ALIVE ifdef
David Schmidt [Thu, 11 Jun 2009 14:13:19 +0000 (14:13 +0000)]
Protect a keepalive flag inside FEATURE_CONNECTION_KEEP_ALIVE ifdef