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.
Fabian Keil [Wed, 19 Aug 2009 16:02:53 +0000 (16:02 +0000)]
In chat(), set CSP_FLAG_CLIENT_REQUEST_COMPLETELY_READ after csp->expected_client_content_length reaches zero so we don't have to deal with the next request until we're ready again.
Fabian Keil [Wed, 19 Aug 2009 16:00:07 +0000 (16:00 +0000)]
Subtract already buffered request bytes from the expected ones and throw away overread bytes in pipelined requests with body to let the client retry on an untainted socket.
Fabian Keil [Wed, 19 Aug 2009 15:59:02 +0000 (15:59 +0000)]
If the client specified a content length, assume that there will be a body and don't bother reading more than the client announced.
Fabian Keil [Wed, 19 Aug 2009 15:57:13 +0000 (15:57 +0000)]
In preparation to allow connection reuse after forwarding POST requests, save the value of the Content-Length header sent by the client.
Fabian Keil [Wed, 19 Aug 2009 15:28:08 +0000 (15:28 +0000)]
Fix gcc45 warning in pcrs_substitute().
Fabian Keil [Wed, 19 Aug 2009 15:26:36 +0000 (15:26 +0000)]
Remove bogus assertion in decompress_iob().
Unsigned variables rarely become negative.
Fabian Keil [Wed, 19 Aug 2009 15:25:31 +0000 (15:25 +0000)]
Fix gcc45 warnings in decompress_iob().
Fabian Keil [Wed, 19 Aug 2009 15:24:30 +0000 (15:24 +0000)]
Fix log message in case of DNS resolution problems in acl_addr().
Fabian Keil [Wed, 19 Aug 2009 15:22:18 +0000 (15:22 +0000)]
Fix gcc45 warning.
Fabian Keil [Sat, 15 Aug 2009 16:24:39 +0000 (16:24 +0000)]
Add redirect exceptions for some news sites linked from ni.dk.
Anonymously reported in #
2830392.
Fabian Keil [Sat, 15 Aug 2009 16:12:16 +0000 (16:12 +0000)]
Make a few domain patterns a bit more restrictive.
Fabian Keil [Sat, 1 Aug 2009 11:48:22 +0000 (11:48 +0000)]
Update the "Download recent releases" URL and fix the "Pictures of the Privoxy Team" URL.
privoxy.org redirects to www.privoxy.org anyway.
Fabian Keil [Sat, 1 Aug 2009 11:46:59 +0000 (11:46 +0000)]
Fix server_set_cookie() description. The jarfile code is gone.
Fabian Keil [Sat, 1 Aug 2009 11:42:43 +0000 (11:42 +0000)]
Fix comment.
Fabian Keil [Sat, 1 Aug 2009 11:41:58 +0000 (11:41 +0000)]
Bump version to 3.0.15 UNRELEASED.
Fabian Keil [Fri, 24 Jul 2009 14:15:10 +0000 (14:15 +0000)]
This announcement is for 3.0.14 beta, not 3.0.13 beta.
Fabian Keil [Fri, 24 Jul 2009 12:22:59 +0000 (12:22 +0000)]
Rebuild for Privoxy 3.0.14 beta.
Fabian Keil [Fri, 24 Jul 2009 12:20:30 +0000 (12:20 +0000)]
Remove duplicated period.
Fabian Keil [Fri, 24 Jul 2009 11:48:08 +0000 (11:48 +0000)]
Change code status from BETA to beta.
Fabian Keil [Thu, 23 Jul 2009 15:16:16 +0000 (15:16 +0000)]
Bump version for 3.0.14 beta.
Fabian Keil [Wed, 22 Jul 2009 22:31:54 +0000 (22:31 +0000)]
Disarm the !socket_is_still_usable() check in chat() for mingw32 where it seems to misfire.
Pointed out by Lee.
Fabian Keil [Wed, 22 Jul 2009 22:27:16 +0000 (22:27 +0000)]
Let socket_is_still_usable() properly report the socket status if there's data waiting.
Pointed out by Lee.
Lee [Tue, 21 Jul 2009 16:29:57 +0000 (16:29 +0000)]
also hilight
Found reusable socket
Created new connection
messages in the log console window.
Fabian Keil [Tue, 21 Jul 2009 14:19:57 +0000 (14:19 +0000)]
Disable content filtering for URLs ending in .ogg or ogv.
Fixes #
2816708 reported by cyberpatrol and Johan Brannlund.
Fabian Keil [Tue, 21 Jul 2009 14:04:25 +0000 (14:04 +0000)]
Ignore line feeds at the end of the message.