Fabian Keil [Thu, 29 Oct 2009 16:50:32 +0000 (16:50 +0000)]
Make it work with my next Privoxy commit.
Currently Privoxy's CGI pages add a space between
action names and parameters, but as far as Privoxy's
action file parser is concerned, that's invalid syntax.
I'm going to fix this and afterwards Privoxy-Regression-Test
has to work with and without the spaces.
Fabian Keil [Thu, 29 Oct 2009 16:46:42 +0000 (16:46 +0000)]
Store the test executors in the test hash and execute them directly instead of through execute_regression_test().
Ditch execute_regression_test() as it's now obsolete.
Lee [Sun, 25 Oct 2009 15:23:40 +0000 (15:23 +0000)]
handle-as-empty-document shouldn't be dependent on the image blocking
feature being enabled.
Fabian Keil [Sat, 24 Oct 2009 12:28:02 +0000 (12:28 +0000)]
Add Havard Berland who reported that the website of the Norwegian newspaper 'Adresseavisen' should be white-listed. #
2884563.
Fabian Keil [Sat, 24 Oct 2009 12:26:57 +0000 (12:26 +0000)]
Unblock URLs for the norwegian newspaper 'Adresseavisen'.
Reported by Havard Berland in #
2884563.
Fabian Keil [Sat, 24 Oct 2009 11:11:33 +0000 (11:11 +0000)]
Bump version to 3.0.16 UNRELEASED.
Fabian Keil [Sat, 10 Oct 2009 19:48:39 +0000 (19:48 +0000)]
Update whatsnew URL for 3.0.15. Better late than never ...
Fabian Keil [Sat, 10 Oct 2009 14:28:40 +0000 (14:28 +0000)]
For one reason or another, the mighty docbook mess decided that upgradersnote.html had to go ...
Fabian Keil [Sat, 10 Oct 2009 06:53:10 +0000 (06:53 +0000)]
Apparently this file has been merged into whatsnew.html.
Fabian Keil [Sat, 10 Oct 2009 06:19:34 +0000 (06:19 +0000)]
Ditch a duplicated 'since'.
Fabian Keil [Sat, 10 Oct 2009 06:07:40 +0000 (06:07 +0000)]
Prepare for 3.0.15 beta.
Fabian Keil [Sat, 10 Oct 2009 06:06:23 +0000 (06:06 +0000)]
Apparently this file has been merged with introduction.html.
Fabian Keil [Sat, 10 Oct 2009 06:01:52 +0000 (06:01 +0000)]
Regenerated docs for 3.0.15.
Fabian Keil [Sat, 10 Oct 2009 05:56:41 +0000 (05:56 +0000)]
Bump version number to 3.0.15.
Fabian Keil [Sat, 10 Oct 2009 05:56:10 +0000 (05:56 +0000)]
Rebuild with recent changes.
Fabian Keil [Sat, 10 Oct 2009 05:53:32 +0000 (05:53 +0000)]
Mention changes in 3.0.15 beta.
Fabian Keil [Sat, 10 Oct 2009 05:52:55 +0000 (05:52 +0000)]
- Update for 3.0.15 beta.
- Remove reference to Redhat init script.
Fabian Keil [Sat, 10 Oct 2009 05:51:48 +0000 (05:51 +0000)]
Update "What's new" section.
Fabian Keil [Sat, 10 Oct 2009 05:51:13 +0000 (05:51 +0000)]
We now have keep-alive support on all platforms.
Fabian Keil [Sat, 10 Oct 2009 05:50:02 +0000 (05:50 +0000)]
Accept and highlight some POST-related messages.
Fabian Keil [Sat, 10 Oct 2009 05:48:55 +0000 (05:48 +0000)]
Prepare for 3.0.15 beta.
Fabian Keil [Sat, 10 Oct 2009 05:47:52 +0000 (05:47 +0000)]
Set CODE_STATUS to beta.
Fabian Keil [Sat, 10 Oct 2009 05:47:19 +0000 (05:47 +0000)]
Add note-worthy changes in 3.0.15 beta.
Fabian Keil [Fri, 9 Oct 2009 16:51:52 +0000 (16:51 +0000)]
Garbage collect a previously overlooked reference to FEATURE_KILL_POPUPS.
Fabian Keil [Fri, 9 Oct 2009 16:50:50 +0000 (16:50 +0000)]
Fix compiler warning when compiled with FEATURE_CONNECTION_KEEP_ALIVE undefined, even though it's defined by default now.
Fabian Keil [Fri, 9 Oct 2009 16:49:30 +0000 (16:49 +0000)]
Completely highlight: Found reusable socket 8 for privoxy.org:80 in slot 2. Timestamp made 0 seconds ago. Timeout: 1. Latency: 0.
Fabian Keil [Thu, 8 Oct 2009 11:50:41 +0000 (11:50 +0000)]
Fix sort order messed up in the previous commit.
Fabian Keil [Thu, 8 Oct 2009 11:48:20 +0000 (11:48 +0000)]
Set the redirect test level to 108 so they aren't executed by default.
Failed tests will result in outgoing connections
and the user may not want that to happen.
Fabian Keil [Thu, 8 Oct 2009 11:47:37 +0000 (11:47 +0000)]
Remove superfluous anonymous sub in parse_cli_options().
Fabian Keil [Thu, 8 Oct 2009 11:47:12 +0000 (11:47 +0000)]
Add a --help option.
Fabian Keil [Thu, 8 Oct 2009 11:46:25 +0000 (11:46 +0000)]
ention --statistics option in perldoc.
Fabian Keil [Thu, 8 Oct 2009 11:45:56 +0000 (11:45 +0000)]
Implement a --statistics option that currently is mainly useful to look at keep-alive issues.
Fabian Keil [Thu, 8 Oct 2009 07:36:37 +0000 (07:36 +0000)]
Plug a server socket leak introduced in 1.299.
Privoxy-Regression-Test ftw.
Fabian Keil [Wed, 7 Oct 2009 16:11:18 +0000 (16:11 +0000)]
Add Francois Marier who reported a jumping-windows issue on openstreetmap.org in #
2863990.
Fabian Keil [Sun, 4 Oct 2009 16:44:33 +0000 (16:44 +0000)]
Add Francois Botha and Wan-Teh Chang for their NTLM-related help in #
2717882.
Fabian Keil [Sun, 4 Oct 2009 16:38:26 +0000 (16:38 +0000)]
Don't use AI_ADDRCONFIG on platforms that don't support it.
Compile fix for OpenBSD and earlier glibc versions.
Anonymously submitted in #
2872591.
Fabian Keil [Sun, 4 Oct 2009 15:47:12 +0000 (15:47 +0000)]
Highlight: Stopped waiting for the request line. Timeout: 121.
Fabian Keil [Sun, 4 Oct 2009 15:46:25 +0000 (15:46 +0000)]
Downgrade "request line timeout" message to LOG_LEVEL_CONNECT and let it mention the timeout value.
Fabian Keil [Sun, 4 Oct 2009 15:45:11 +0000 (15:45 +0000)]
Garbage collect csp->sfd and consistently use csp->server_connection.sfd instead.
Fabian Keil [Sun, 4 Oct 2009 15:34:18 +0000 (15:34 +0000)]
In case of missing server data, send no error message to the client if the request arrived on a reused connection.
The client is then supposed to silently retry the request without
bothering the user. At least Firefox actually does that.
Fabian Keil [Sat, 3 Oct 2009 10:40:05 +0000 (10:40 +0000)]
Update the google filter to remove the width restrictions again.
Fabian Keil [Sat, 3 Oct 2009 10:39:33 +0000 (10:39 +0000)]
Update the yahoo filter to remove the width restrictions again.
Fabian Keil [Sat, 3 Oct 2009 10:38:58 +0000 (10:38 +0000)]
Update the msn filter to remove the width restrictions again.
Fabian Keil [Sat, 3 Oct 2009 10:37:49 +0000 (10:37 +0000)]
Streamline remember_connection()'s prototype.
Nowadays csp->server_connection contains all the information it needs.
Fabian Keil [Fri, 2 Oct 2009 18:07:22 +0000 (18:07 +0000)]
Disable the jumping-windows filter for openstreetmap.org.
Reported by Francois Marier in #
2863990.
Fabian Keil [Thu, 1 Oct 2009 16:07:34 +0000 (16:07 +0000)]
And by 'latency' we don't mean the round trip time.
Fabian Keil [Thu, 1 Oct 2009 15:05:54 +0000 (15:05 +0000)]
In execute_regression_test(), use a dispatch hash instead a bunch of ifs.
Fabian Keil [Thu, 1 Oct 2009 15:05:26 +0000 (15:05 +0000)]
Redirect-test related cosmetics.
Fabian Keil [Thu, 1 Oct 2009 15:04:52 +0000 (15:04 +0000)]
Let the yahoo filter hide elements with the id 'sponsored-links'.
They are used on news.yahoo.com.
Fabian Keil [Sat, 26 Sep 2009 17:21:01 +0000 (17:21 +0000)]
Remove the useless revision log, thus shortening the file by 30%.
Fabian Keil [Sat, 26 Sep 2009 17:13:02 +0000 (17:13 +0000)]
Remove a bunch of noop dist targets that have been 'coming soon' for years.
Fabian Keil [Sat, 26 Sep 2009 17:12:19 +0000 (17:12 +0000)]
Remove obsolete redhat, suse and connectiva targets.
Fabian Keil [Sat, 26 Sep 2009 16:49:21 +0000 (16:49 +0000)]
Remove the SuSE spec file and init script.
SuSE RPM support is death, too.
Fabian Keil [Sat, 26 Sep 2009 16:45:34 +0000 (16:45 +0000)]
Remove obsolete and unmaintained Redhat spec files and scripts.
We stopped providing and supporting Redhat RPMs quite a while ago.
Fabian Keil [Sat, 26 Sep 2009 16:39:50 +0000 (16:39 +0000)]
Remove obsolete and unmaintained VC project files.
They only cause confusion.
Fabian Keil [Sat, 26 Sep 2009 13:32:35 +0000 (13:32 +0000)]
In receive_client_request(), mark the server socket tainted if get_request_line() fails.
Fabian Keil [Sat, 26 Sep 2009 13:29:57 +0000 (13:29 +0000)]
In read_config_line(), turn overly long lines into fatal errors.
Seems more reasonable than silently discarding data or triggering an assertion.
Fabian Keil [Tue, 22 Sep 2009 11:35:52 +0000 (11:35 +0000)]
Fix a log message in get_reusable_connection(). A blank was missing.
Fabian Keil [Tue, 22 Sep 2009 11:33:23 +0000 (11:33 +0000)]
Remove the undocumented and useless --statistic option.
The log level distribution no longer matters.
Fabian Keil [Fri, 18 Sep 2009 18:57:20 +0000 (18:57 +0000)]
Don't bother remembering connections that already timed out.
While remembering them is safe as they wouldn't be reused
anyway, it's pointless, causes log noise and temporarily
blocks a socket slot.
Fabian Keil [Fri, 18 Sep 2009 18:52:33 +0000 (18:52 +0000)]
In serve(), make the latency loop-local and actually calculate it. Oops.
In other words: Revision 270. Once more, with feeling.
Fabian Keil [Fri, 18 Sep 2009 18:25:46 +0000 (18:25 +0000)]
Cosmetics and spelling fixes for the previous commit.
Fabian Keil [Fri, 18 Sep 2009 17:33:02 +0000 (17:33 +0000)]
Add redirect tests for already existing sections using +redirect{}.
Fabian Keil [Fri, 18 Sep 2009 17:30:59 +0000 (17:30 +0000)]
Implement redirect tests. Their default level is 8.
Redirect tests verify that a given URL is redirected
to a specified other one. Previously we only had sticky
actions which can be used to check if a redirect action
shows up in the final results, but not what the effect is.
Redirect tests can also be leveraged to verify pcrs commands.
Fabian Keil [Sat, 12 Sep 2009 12:38:14 +0000 (12:38 +0000)]
Highlight: Done reading from server. Content length: 6018 as expected. Bytes most recently read: 294.
Fabian Keil [Sat, 12 Sep 2009 12:37:37 +0000 (12:37 +0000)]
Make it easier to figure out whether or not the actual content length equals the one we expected.
Fabian Keil [Sat, 12 Sep 2009 12:36:53 +0000 (12:36 +0000)]
Accept and ignore: Stopping to watch the client socket. There's already another request waiting.
Fabian Keil [Sat, 12 Sep 2009 12:36:02 +0000 (12:36 +0000)]
Accept and highlight: The client closed socket 2 while the server socket 4 is still open.
Fabian Keil [Sat, 12 Sep 2009 12:35:14 +0000 (12:35 +0000)]
Turn mark_server_socket_tainted() into a nop if the server socket is already tainted.
Tainting it twice doesn't hurt, but logging the same message twice is pointless.
Fabian Keil [Sat, 12 Sep 2009 12:32:26 +0000 (12:32 +0000)]
If we got a complete client request, keep watching the client socket until the next one arrives.
Improves the chances that we notice if the client socket gets
closed before the whole server response has been received.
Fabian Keil [Fri, 11 Sep 2009 18:15:19 +0000 (18:15 +0000)]
Fix recently committed block test.
Fabian Keil [Thu, 10 Sep 2009 15:03:20 +0000 (15:03 +0000)]
Highlight the assumed latency, too.
Fabian Keil [Thu, 10 Sep 2009 15:02:25 +0000 (15:02 +0000)]
Adjustments for recently changed log messages.
Fabian Keil [Thu, 10 Sep 2009 14:59:34 +0000 (14:59 +0000)]
Add trailing dot in a log message in close_unusable_connections().
Fabian Keil [Thu, 10 Sep 2009 14:58:54 +0000 (14:58 +0000)]
len refers to the number of bytes actually read which might differ from the ones received. Adjust log messages accordingly.
Fabian Keil [Thu, 10 Sep 2009 14:53:34 +0000 (14:53 +0000)]
Also peek in data_is_available().
Pointed out by Lee a while ago.
Fabian Keil [Thu, 10 Sep 2009 14:45:17 +0000 (14:45 +0000)]
In the Argv declaration, move the const qualifier to the right place.
Fabian Keil [Thu, 10 Sep 2009 14:42:01 +0000 (14:42 +0000)]
Don't constify argv in the main() and real_main() prototypes.
Could silence a mingw32 compiler warning.
Fabian Keil [Wed, 9 Sep 2009 17:12:08 +0000 (17:12 +0000)]
Fix recently introduced compiler warnings on amd64.
Lee [Mon, 7 Sep 2009 19:13:58 +0000 (19:13 +0000)]
actionsfile tracker ID:
2838501
http://new.meteo.pl does not work via Privoxy.
Lee [Mon, 7 Sep 2009 18:35:04 +0000 (18:35 +0000)]
fix for problem playing videos on nfl.com & bbc.co.uk
block bcc.co.uk - nothing but ads
Fabian Keil [Sun, 6 Sep 2009 17:20:31 +0000 (17:20 +0000)]
Add a bit more details for the "pipe into external programs" item.
Fabian Keil [Sun, 6 Sep 2009 17:11:45 +0000 (17:11 +0000)]
Remove a superfluous debug message in chat().
Fabian Keil [Sun, 6 Sep 2009 15:22:31 +0000 (15:22 +0000)]
Fix gcc45 on amd64 warning.
Fabian Keil [Sun, 6 Sep 2009 15:07:55 +0000 (15:07 +0000)]
Use encodeURIComponent() instead of escape() which doesn't encode all characters we care about.
Anonymously reported in #
2832722.
Fabian Keil [Sun, 6 Sep 2009 14:18:35 +0000 (14:18 +0000)]
Show status of CONNECTION_SHARING support on the show-status page.
Fabian Keil [Sun, 6 Sep 2009 14:17:00 +0000 (14:17 +0000)]
Enable FEATURE_CONNECTION_KEEP_ALIVE unconditionally. Enable FEATURE_CONNECTION_SHARING on platforms with supported mutexes.
Fabian Keil [Sun, 6 Sep 2009 14:15:46 +0000 (14:15 +0000)]
Disable connection-sharing unless FEATURE_CONNECTION_SHARING is defined.
Fabian Keil [Sun, 6 Sep 2009 14:11:06 +0000 (14:11 +0000)]
In get_content_length(), add a sanity check for mingw32.
Fabian Keil [Sun, 6 Sep 2009 14:10:07 +0000 (14:10 +0000)]
Factor get_content_length() out of client_save_content_length() and server_save_content_length().
Fabian Keil [Sun, 6 Sep 2009 14:09:19 +0000 (14:09 +0000)]
In get_reusable_connection(), also log when the timestamp was made, the timeout and the assumed latency.
Fabian Keil [Sun, 6 Sep 2009 14:07:56 +0000 (14:07 +0000)]
In serve(), don't bother assuming a timeout value if we aren't going to reuse the connection anyway.
While it didn't hurt, the log message looked somewhat stupid.
Fabian Keil [Sat, 5 Sep 2009 18:04:37 +0000 (18:04 +0000)]
Simplify the initial byte_count calculation to get rid of the lame workaround added in the previous commit.
Fabian Keil [Fri, 4 Sep 2009 18:28:32 +0000 (18:28 +0000)]
In chat(), reset byte_count each time we are buffering additional server headers.
We otherwise seem to miscalculate it, if we don't get the whole head in two reads or less.
This is another attempt to fix #
2840156 reported by Olivier.
It's not a permanent solution but should do for now.
Fabian Keil [Fri, 28 Aug 2009 15:45:18 +0000 (15:45 +0000)]
Don't miscalculate byte_count when buffering server headers without any complete server header read yet.
Likely to fix #
2840156 reported by Oliver.
Fabian Keil [Fri, 28 Aug 2009 14:42:06 +0000 (14:42 +0000)]
Factor verify_request_length() out of parse_client_request().
While at it, check the request length for all but CONNECT requests,
independently of CSP_FLAG_CLIENT_CONNECTION_KEEP_ALIVE.
Fabian Keil [Thu, 20 Aug 2009 15:43:56 +0000 (15:43 +0000)]
Accept and highlight: Reduced expected bytes to 0 to account for the 1542 ones we already got.
Fabian Keil [Thu, 20 Aug 2009 15:27:03 +0000 (15:27 +0000)]
Remove redundant log message in client_save_content_length().
Fabian Keil [Thu, 20 Aug 2009 14:19:52 +0000 (14:19 +0000)]
Highlight: Empty server or forwarder response received on socket 4.
Fabian Keil [Thu, 20 Aug 2009 14:18:27 +0000 (14:18 +0000)]
Accept and ignore: There might be a request body. The connection will not be kept alive.