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

13 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.

13 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.

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

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

13 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.

13 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

13 years agoEnlist Petr Písar who contributed the IPv6 code,
Fabian Keil [Thu, 11 Jun 2009 14:07:15 +0000 (14:07 +0000)]
Enlist Petr Písar who contributed the IPv6 code,
spelling the name as good as I seem to be able to
without messing up the encoding.

13 years agoMove Jörg to the former team members section.
Fabian Keil [Thu, 11 Jun 2009 13:57:01 +0000 (13:57 +0000)]
Move Jörg to the former team members section.

13 years agoChange code status to beta.
Fabian Keil [Thu, 11 Jun 2009 12:19:20 +0000 (12:19 +0000)]
Change code status to beta.

13 years agoAdd recently added cgi templates.
Fabian Keil [Thu, 11 Jun 2009 12:16:02 +0000 (12:16 +0000)]
Add recently added cgi templates.

13 years agoBump version for 3.0.13 beta.
Fabian Keil [Thu, 11 Jun 2009 12:13:51 +0000 (12:13 +0000)]
Bump version for 3.0.13 beta.

13 years agoUpdate for 3.0.13 beta.
Fabian Keil [Thu, 11 Jun 2009 12:10:09 +0000 (12:10 +0000)]
Update for 3.0.13 beta.

13 years agoSend a template-based response in case of prematurely closed connections.
Fabian Keil [Thu, 11 Jun 2009 11:49:11 +0000 (11:49 +0000)]
Send a template-based response in case of prematurely closed connections.

13 years agoIn error_response(), factor the (rsp->status == NULL) checks out of the if blocks.
Fabian Keil [Thu, 11 Jun 2009 11:47:16 +0000 (11:47 +0000)]
In error_response(), factor the (rsp->status == NULL) checks out of the if blocks.

13 years agoSend a template-based response in case of server connection timeouts.
Fabian Keil [Thu, 11 Jun 2009 11:46:22 +0000 (11:46 +0000)]
Send a template-based response in case of server connection timeouts.

13 years agoRemove error_response()'s third parameter. None of the templates use it.
Fabian Keil [Thu, 11 Jun 2009 11:44:25 +0000 (11:44 +0000)]
Remove error_response()'s third parameter. None of the templates use it.

13 years agoOSX doesn't define AI_NUMERICSERV
David Schmidt [Wed, 10 Jun 2009 22:36:01 +0000 (22:36 +0000)]
OSX doesn't define AI_NUMERICSERV

13 years agoRemove check_for_curl() as using 'which' isn't portable.
Fabian Keil [Wed, 10 Jun 2009 16:38:08 +0000 (16:38 +0000)]
Remove check_for_curl() as using 'which' isn't portable.
If curl turns out to be missing, we now simply die a bit later.

13 years agoLet extended hostname patterns without trailing dots cover hostnames with trailing...
Fabian Keil [Wed, 10 Jun 2009 13:17:17 +0000 (13:17 +0000)]
Let extended hostname patterns without trailing dots cover hostnames with trailing dot as well.

The old-school pattern code already does that as a side effect
of treating dots as delimiters instead of real characters.

13 years agoAdd tests for trailing dots in hostnames.
Fabian Keil [Wed, 10 Jun 2009 13:15:35 +0000 (13:15 +0000)]
Add tests for trailing dots in hostnames.

13 years agoFactor create_content_length_header() out of server_adjust_content_length().
Fabian Keil [Wed, 10 Jun 2009 12:50:15 +0000 (12:50 +0000)]
Factor create_content_length_header() out of server_adjust_content_length().

13 years agoIgnore: Content modified with no Content-Length header set. Creating a fake one for...
Fabian Keil [Mon, 8 Jun 2009 17:22:52 +0000 (17:22 +0000)]
Ignore: Content modified with no Content-Length header set. Creating a fake one for adjustment later on.

13 years agoThe fflush() argument is a pointer. Don't use 0 instead of NULL.
Fabian Keil [Mon, 8 Jun 2009 16:50:35 +0000 (16:50 +0000)]
The fflush() argument is a pointer. Don't use 0 instead of NULL.

13 years agoDon't leak parts of the client headers if a timeout is triggered while reading the...
Fabian Keil [Mon, 8 Jun 2009 16:48:50 +0000 (16:48 +0000)]
Don't leak parts of the client headers if a timeout is triggered while reading the request.

13 years agoHere's a fresh idea, why don't we respect taboos unless we're asked not to?
Fabian Keil [Mon, 8 Jun 2009 16:48:09 +0000 (16:48 +0000)]
Here's a fresh idea, why don't we respect taboos unless we're asked not to?

13 years agoDon't force the client to wait for the connection to timeout if we
Fabian Keil [Mon, 8 Jun 2009 16:47:07 +0000 (16:47 +0000)]
Don't force the client to wait for the connection to timeout if we
modified the content, the client asked for keep-alive and there's
no Content-Length header present.

13 years agoLet subs work with the test hash directly, there's no need to use a local copy.
Fabian Keil [Fri, 5 Jun 2009 18:58:26 +0000 (18:58 +0000)]
Let subs work with the test hash directly, there's no need to use a local copy.

13 years agoDocument the 6 mysterious bytes we skip in decompress_iob().
Fabian Keil [Fri, 5 Jun 2009 16:55:16 +0000 (16:55 +0000)]
Document the 6 mysterious bytes we skip in decompress_iob().

13 years agoRemove stray empty line.
Fabian Keil [Fri, 5 Jun 2009 16:54:27 +0000 (16:54 +0000)]
Remove stray empty line.

13 years agoUse macros for the magic numbers in decompress_iob().
Fabian Keil [Fri, 5 Jun 2009 16:53:55 +0000 (16:53 +0000)]
Use macros for the magic numbers in decompress_iob().

13 years agoItem "33) Remove the CVS Log message junk from the C files" is done.
Fabian Keil [Wed, 3 Jun 2009 18:49:18 +0000 (18:49 +0000)]
Item "33) Remove the CVS Log message junk from the C files" is done.

13 years agoExplicitly mention that the config file can be edited with a text editor and name...
Fabian Keil [Wed, 3 Jun 2009 18:30:18 +0000 (18:30 +0000)]
Explicitly mention that the config file can be edited with a text editor and name a few examples.
As #2782881 reminds us, Windows users aren't generally used to changing configuration files that way.

13 years agoFactor path_matches() out of url_match().
Fabian Keil [Wed, 3 Jun 2009 16:44:41 +0000 (16:44 +0000)]
Factor path_matches() out of url_match().

13 years agoFactor host_matches() out of url_match().
Fabian Keil [Wed, 3 Jun 2009 16:44:15 +0000 (16:44 +0000)]
Factor host_matches() out of url_match().

13 years agoFactor port_matches() out of url_match().
Fabian Keil [Wed, 3 Jun 2009 16:43:50 +0000 (16:43 +0000)]
Factor port_matches() out of url_match().

13 years agoFix comment spelling.
Fabian Keil [Wed, 3 Jun 2009 16:43:16 +0000 (16:43 +0000)]
Fix comment spelling.

13 years agoStreamline struct http_request if FEATURE_EXTENDED_HOST_PATTERNS is enabled.
Fabian Keil [Wed, 3 Jun 2009 16:42:49 +0000 (16:42 +0000)]
Streamline struct http_request if FEATURE_EXTENDED_HOST_PATTERNS is enabled.

13 years agoIf all the data we got decompressed OK, but zlib wants more, filter what we got inste...
Fabian Keil [Mon, 1 Jun 2009 16:34:48 +0000 (16:34 +0000)]
If all the data we got decompressed OK, but zlib wants more, filter what we got instead of forwarding the unfiltered compressed content.

13 years agoIn decompress_iob(), remove the skip_bytes history lesson and remove an unnecessary...
Fabian Keil [Mon, 1 Jun 2009 15:33:33 +0000 (15:33 +0000)]
In decompress_iob(), remove the skip_bytes history lesson and remove an unnecessary and incorrect assert().

13 years agoStyle fix.
Fabian Keil [Mon, 1 Jun 2009 15:14:40 +0000 (15:14 +0000)]
Style fix.

13 years agoIn client_if_modified_since(), rename negative to negative_range.
Fabian Keil [Mon, 1 Jun 2009 14:18:49 +0000 (14:18 +0000)]
In client_if_modified_since(), rename negative to negative_range.

13 years agoIn server_last_modified(), rename negative to negative_delta.
Fabian Keil [Mon, 1 Jun 2009 14:18:04 +0000 (14:18 +0000)]
In server_last_modified(), rename negative to negative_delta.

13 years agoFactor get_skip_reason() out of execute_regression_tests().
Fabian Keil [Mon, 1 Jun 2009 13:22:56 +0000 (13:22 +0000)]
Factor get_skip_reason() out of execute_regression_tests().

13 years agoIn check_for_forbidden_characters(), don't allow line breaks.
Fabian Keil [Mon, 1 Jun 2009 13:16:36 +0000 (13:16 +0000)]
In check_for_forbidden_characters(), don't allow line breaks.
Specifying them is currently not possible and makes no sense anyway.

13 years agoIn load_regression_tests(), catch-last minute config file changes
Fabian Keil [Mon, 1 Jun 2009 10:49:07 +0000 (10:49 +0000)]
In load_regression_tests(), catch-last minute config file changes
by requesting the config file twice and discarding the result of
the first request.

13 years agoTwo additional hide-if-modified-since{} tests created while debugging #2797798.
Fabian Keil [Thu, 28 May 2009 21:38:13 +0000 (21:38 +0000)]
Two additional hide-if-modified-since{} tests created while debugging #2797798.

As it turns out they don't actually cause any problems,
but at least in theory they could be edge cases and are
thus test-worthy.

13 years agoUnbreak compilation for compilers that don't recognize lone defs.
Fabian Keil [Thu, 28 May 2009 21:13:34 +0000 (21:13 +0000)]
Unbreak compilation for compilers that don't recognize lone defs.
Reported by Lee.

13 years agoTurn server_proxy_connection_adder() into a nop if the client didn't request keep...
Fabian Keil [Thu, 28 May 2009 18:42:30 +0000 (18:42 +0000)]
Turn server_proxy_connection_adder() into a nop if the client didn't request keep-alive.

13 years agoImprove code clarity by factoring log_and_die() out of l().
Fabian Keil [Thu, 28 May 2009 17:26:04 +0000 (17:26 +0000)]
Improve code clarity by factoring log_and_die() out of l().

13 years agoCheck the right macro to decide if we can use privoxy_mutex_lock().
Fabian Keil [Thu, 28 May 2009 17:07:42 +0000 (17:07 +0000)]
Check the right macro to decide if we can use privoxy_mutex_lock().

Should fix the crash-while-randomizing-header-dates bug on mingw32
anonymously reported in #2797798. This is pretty much the same bug
that was already fixed in 3.0.7, but apparently I found a way to
reintroduce it in 3.0.11. Yeehaw.

13 years agoReject unknown dependencies.
Fabian Keil [Wed, 27 May 2009 20:46:25 +0000 (20:46 +0000)]
Reject unknown dependencies.

13 years agoDue to a bug in dependency_unsatisfied(), tests were executed as long as the first...
Fabian Keil [Wed, 27 May 2009 20:45:31 +0000 (20:45 +0000)]
Due to a bug in dependency_unsatisfied(), tests were executed as long as the first config-line dependency registered didn't match the first directive in the config file.

It "worked" so far, because until recently we only had a single
config-line dependency and only had to check the user-manual
directive, which usually is the first one.

And there I was rewriting client_connection() from scratch,
puzzled that the stupid connection-sharing tests would still
fail.

13 years agoMake sure we upgrade the client connection header if connection-sharing is enabled...
Fabian Keil [Wed, 27 May 2009 20:37:15 +0000 (20:37 +0000)]
Make sure we upgrade the client connection header if connection-sharing is enabled, and that we don't if it isn't.

13 years agoUnblock iTunes download links. Anonymously reported in AF#2789653.
Fabian Keil [Mon, 25 May 2009 21:27:19 +0000 (21:27 +0000)]
Unblock iTunes download links. Anonymously reported in AF#2789653.

13 years agoUnbreak elsif condition.
Fabian Keil [Mon, 25 May 2009 19:37:43 +0000 (19:37 +0000)]
Unbreak elsif condition.

13 years agoStreamline elsif condition. White space fixes.
Fabian Keil [Mon, 25 May 2009 19:33:08 +0000 (19:33 +0000)]
Streamline elsif condition. White space fixes.

13 years agoHighlight: Could not connect to [10.0.0.1]:80.
Fabian Keil [Mon, 25 May 2009 19:11:03 +0000 (19:11 +0000)]
Highlight: Could not connect to [10.0.0.1]:80.

13 years agoDowngrade another log message in connect_to() to LOG_LEVEL_CONNECT.
Fabian Keil [Mon, 25 May 2009 15:43:34 +0000 (15:43 +0000)]
Downgrade another log message in connect_to() to LOG_LEVEL_CONNECT.

13 years agoIn client_connection_header_adder(), check flags against csp->flags directly.
Fabian Keil [Mon, 25 May 2009 15:42:40 +0000 (15:42 +0000)]
In client_connection_header_adder(), check flags against csp->flags directly.

13 years agoKeep the server header 'Connection: keep-alive' around if the client implied keep...
Fabian Keil [Mon, 25 May 2009 15:41:52 +0000 (15:41 +0000)]
Keep the server header 'Connection: keep-alive' around if the client implied keep-alive my not setting any Connection header.

13 years agoIf we are keeping the server connection alive behind the client's back, make sure...
Fabian Keil [Mon, 25 May 2009 15:40:52 +0000 (15:40 +0000)]
If we are keeping the server connection alive behind the client's back, make sure the client sees a "Connection: close" header.

13 years agoDoh. Unbreak extra field skipping in decompress_iob().
Fabian Keil [Tue, 19 May 2009 18:02:03 +0000 (18:02 +0000)]
Doh. Unbreak extra field skipping in decompress_iob().
Pointed out by clang, initially fat-fingered by me.

13 years agoFix a recently added logic error that could result in keep_alive_timeout being read...
Fabian Keil [Tue, 19 May 2009 17:52:03 +0000 (17:52 +0000)]
Fix a recently added logic error that could result in keep_alive_timeout being read uninitialized.
Detected by clang. Pointy hat to me.

13 years agoFix clang warning: Value stored to 'timeptr' is never read.
Fabian Keil [Tue, 19 May 2009 17:48:58 +0000 (17:48 +0000)]
Fix clang warning: Value stored to 'timeptr' is never read.

13 years agoFix clang warning: Value stored to ch is never read.
Fabian Keil [Tue, 19 May 2009 17:47:22 +0000 (17:47 +0000)]
Fix clang warning: Value stored to ch is never read.

13 years agoFix clang warning: Value stored to 'err' is never read.
Fabian Keil [Tue, 19 May 2009 17:46:24 +0000 (17:46 +0000)]
Fix clang warning: Value stored to 'err' is never read.
We don't need to check the return value because we're
detecting errors with the (NULL == filename) check.

13 years agoHelp clang understand that we aren't dereferencing a NULL pointer here.
Fabian Keil [Tue, 19 May 2009 17:45:31 +0000 (17:45 +0000)]
Help clang understand that we aren't dereferencing a NULL pointer here.

13 years agoFix clang warning: Value stored to 'i' is never read.
Fabian Keil [Tue, 19 May 2009 17:44:54 +0000 (17:44 +0000)]
Fix clang warning: Value stored to 'i' is never read.

13 years agoFix clang warning: Value stored to 'hits' is never read.
Fabian Keil [Tue, 19 May 2009 17:44:22 +0000 (17:44 +0000)]
Fix clang warning: Value stored to 'hits' is never read.

13 years agoFix clang warning: Value stored to 'err' is never read.
Fabian Keil [Tue, 19 May 2009 17:43:45 +0000 (17:43 +0000)]
Fix clang warning: Value stored to 'err' is never read.

13 years agoFix clang warning: Although the value stored to k is used
Fabian Keil [Tue, 19 May 2009 17:42:32 +0000 (17:42 +0000)]
Fix clang warning: Although the value stored to k is used
in the enclosing expression, the value is never actually
read from k.

13 years agoStyle fix.
Fabian Keil [Tue, 19 May 2009 17:40:36 +0000 (17:40 +0000)]
Style fix.

13 years agoFix clang warning: Although the value stored to 'next'
Fabian Keil [Tue, 19 May 2009 17:39:59 +0000 (17:39 +0000)]
Fix clang warning: Although the value stored to 'next'
is used in the enclosing expression, the value is never
actually read from 'next'.

13 years agoFix keep-alive upgrading if connection-sharing is used.
Fabian Keil [Tue, 19 May 2009 17:27:05 +0000 (17:27 +0000)]
Fix keep-alive upgrading if connection-sharing is used.

13 years agoHighlight: Connected to tor-jail[10.0.0.2]:9050.
Fabian Keil [Tue, 19 May 2009 17:22:34 +0000 (17:22 +0000)]
Highlight: Connected to tor-jail[10.0.0.2]:9050.

13 years agoStyle fixes for the last commit. Also downgrade some log
Fabian Keil [Tue, 19 May 2009 17:20:35 +0000 (17:20 +0000)]
Style fixes for the last commit. Also downgrade some log
levels, ditch the TCP/ prefix and add trailing periods.

13 years agoIn connect_to(), try multiple addresses if possible and necessary.
Fabian Keil [Tue, 19 May 2009 17:18:52 +0000 (17:18 +0000)]
In connect_to(), try multiple addresses if possible and necessary.
Closes #2790891. Problem reported and patch provided by Petr Pisar.

13 years agocheck_for_forbidden_characters() cosmetics:
Fabian Keil [Tue, 19 May 2009 14:45:16 +0000 (14:45 +0000)]
check_for_forbidden_characters() cosmetics:
- Don't unnecessarily escape '?' and '/' inside the character class.
- Use a more appropriate variable name.
- Compile the regex only once. While it doesn't matter, it doesn't hurt either.

13 years agoRemove CVS revision logs. TODO item #33.
Fabian Keil [Sat, 16 May 2009 13:27:21 +0000 (13:27 +0000)]
Remove CVS revision logs. TODO item #33.

13 years agoAdd the TODO list proposed on ijbswa-developers@,
Fabian Keil [Sat, 16 May 2009 11:28:08 +0000 (11:28 +0000)]
Add the TODO list proposed on ijbswa-developers@,
minus some items that have been committed already.

13 years ago- Don't let --verbose imply --show-skipped-tests. It's just
Fabian Keil [Fri, 15 May 2009 20:26:55 +0000 (20:26 +0000)]
- Don't let --verbose imply --show-skipped-tests. It's just
  too annoying when we're only interested in a few tests.
- White space cosmetics.

13 years agoPerldoc spelling fix.
Fabian Keil [Fri, 15 May 2009 19:21:44 +0000 (19:21 +0000)]
Perldoc spelling fix.

13 years agoIf the new keep-alive code is enabled, Keep-Alive headers are passed.
Fabian Keil [Wed, 13 May 2009 19:26:22 +0000 (19:26 +0000)]
If the new keep-alive code is enabled, Keep-Alive headers are passed.

13 years agoHighlight log messages from server_keep_alive().
Fabian Keil [Wed, 13 May 2009 18:24:11 +0000 (18:24 +0000)]
Highlight log messages from server_keep_alive().

13 years agoRespect the server's keep-alive value if it's below ours.
Fabian Keil [Wed, 13 May 2009 18:22:45 +0000 (18:22 +0000)]
Respect the server's keep-alive value if it's below ours.

13 years agoThere's no reason for keep_alive_timeout to be signed.
Fabian Keil [Wed, 13 May 2009 18:20:54 +0000 (18:20 +0000)]
There's no reason for keep_alive_timeout to be signed.

13 years agoSurprised adjuggler.com hasn't been flagged before now
Lee [Sun, 10 May 2009 17:53:07 +0000 (17:53 +0000)]
Surprised adjuggler.com hasn't been flagged before now

13 years agoChange wait_for_alive_connection() prototype to use (void).
Fabian Keil [Sun, 10 May 2009 10:25:19 +0000 (10:25 +0000)]
Change wait_for_alive_connection() prototype to use (void).

13 years agoRegenerate with connection-sharing and max-client-connections.
Fabian Keil [Sun, 10 May 2009 10:21:13 +0000 (10:21 +0000)]
Regenerate with connection-sharing and max-client-connections.

13 years agoDeal with the log messages for client socket keep-alive support.
Fabian Keil [Sun, 10 May 2009 10:20:09 +0000 (10:20 +0000)]
Deal with the log messages for client socket keep-alive support.

13 years agoReenable server-side-only keep-alive support, but only share
Fabian Keil [Sun, 10 May 2009 10:19:23 +0000 (10:19 +0000)]
Reenable server-side-only keep-alive support, but only share
outgoing connections if the connection-sharing option is set.

13 years agoInitial keep-alive support for the client socket.
Fabian Keil [Sun, 10 May 2009 10:12:30 +0000 (10:12 +0000)]
Initial keep-alive support for the client socket.
Temporarily disable the server-side-only keep-alive code.

13 years agoallow lads.myspacecdn.com
Lee [Fri, 8 May 2009 06:59:18 +0000 (06:59 +0000)]
allow lads.myspacecdn.com
fixes tracker item 2786745 : MySpace music player doesn't work

13 years agoProperly highlight LOG_LEVEL_CLF messages with IPv6 addresses.
Fabian Keil [Fri, 1 May 2009 11:04:19 +0000 (11:04 +0000)]
Properly highlight LOG_LEVEL_CLF messages with IPv6 addresses.

13 years agoIgnore nested comments in tokenize().
Fabian Keil [Fri, 1 May 2009 11:03:11 +0000 (11:03 +0000)]
Ignore nested comments in tokenize().

13 years agoModify for smartadserver.com per Actionsfile feedback item #2781461.
hal9 [Sun, 26 Apr 2009 12:59:59 +0000 (12:59 +0000)]
Modify for smartadserver.com per Actionsfile feedback item #2781461.

13 years agoAllow to limit the number of of client connections.
Fabian Keil [Fri, 24 Apr 2009 15:29:43 +0000 (15:29 +0000)]
Allow to limit the number of of client connections.

13 years agoUse a real miscellaneous section instead of misusing the forwarding section.
Fabian Keil [Sun, 19 Apr 2009 17:39:55 +0000 (17:39 +0000)]
Use a real miscellaneous section instead of misusing the forwarding section.

13 years agoRegenerated with the IPv6 changes.
Fabian Keil [Fri, 17 Apr 2009 13:27:06 +0000 (13:27 +0000)]
Regenerated with the IPv6 changes.