privoxy.git
15 years agoGive crunched requests their own log level.
Fabian Keil [Sun, 14 Dec 2008 15:46:23 +0000 (15:46 +0000)]
Give crunched requests their own log level.

15 years agoAdd keep-alive-timeout section.
Fabian Keil [Sat, 13 Dec 2008 18:19:44 +0000 (18:19 +0000)]
Add keep-alive-timeout section.

15 years agoReword FEATURE_CONNECTION_KEEP_ALIVE description.
Fabian Keil [Sat, 13 Dec 2008 11:20:41 +0000 (11:20 +0000)]
Reword FEATURE_CONNECTION_KEEP_ALIVE description.

15 years agoRemove duplicated debugging checks
Fabian Keil [Sat, 13 Dec 2008 11:07:23 +0000 (11:07 +0000)]
Remove duplicated debugging checks
in connection_destination_matches().

15 years agoDocument the keep-alive-timeout directive.
Fabian Keil [Sat, 13 Dec 2008 10:48:21 +0000 (10:48 +0000)]
Document the keep-alive-timeout directive.

15 years agoBlock feedproxy.google.com/~r/.*/~4/.
Fabian Keil [Sat, 13 Dec 2008 10:05:29 +0000 (10:05 +0000)]
Block feedproxy.google.com/~r/.*/~4/.

15 years agoHighlight:
Fabian Keil [Sat, 6 Dec 2008 16:19:18 +0000 (16:19 +0000)]
Highlight:
Connect: Received 206 bytes while expecting 12103.

15 years agoHighlight:
Fabian Keil [Sat, 6 Dec 2008 11:31:26 +0000 (11:31 +0000)]
Highlight:
Continuing buffering headers. byte_count: 19. header_offset: 517. len: 536.

15 years agoDowngrade "Received x bytes while expecting y." message to
Fabian Keil [Sat, 6 Dec 2008 10:05:03 +0000 (10:05 +0000)]
Downgrade "Received x bytes while expecting y." message to
LOG_LEVEL_CONNECT as it doesn't necessarily indicate an error.

15 years agoFix some cparser warnings.
Fabian Keil [Thu, 4 Dec 2008 18:18:56 +0000 (18:18 +0000)]
Fix some cparser warnings.

15 years agoFix a cparser warning.
Fabian Keil [Thu, 4 Dec 2008 18:13:46 +0000 (18:13 +0000)]
Fix a cparser warning.

15 years agoFix some cparser warnings.
Fabian Keil [Thu, 4 Dec 2008 18:12:19 +0000 (18:12 +0000)]
Fix some cparser warnings.

15 years agoDon't miscalculate byte_count if we don't get all the
Fabian Keil [Tue, 2 Dec 2008 22:03:18 +0000 (22:03 +0000)]
Don't miscalculate byte_count if we don't get all the
server headers with one read_socket() call. With keep-alive
support enabled, this caused delays until the server closed
the connection.

15 years ago- Block .googleadservices.com/~.
Fabian Keil [Sun, 30 Nov 2008 17:30:17 +0000 (17:30 +0000)]
- Block .googleadservices.com/~.
- Unblock .proaurum.de/ and .goldmoney.com/.
- Add fast-redirects exception for .landsend.de/.
- Add URL directives for wiktionary.org.

15 years agoCosmetics for the last commit: Don't watch out for
Fabian Keil [Thu, 27 Nov 2008 09:44:04 +0000 (09:44 +0000)]
Cosmetics for the last commit: Don't watch out for
the last chunk if the content isn't chunk-encoded or
if we already determined the content length previously.

15 years agoRecognize that the server response is complete if the
Fabian Keil [Wed, 26 Nov 2008 18:24:17 +0000 (18:24 +0000)]
Recognize that the server response is complete if the
last chunk is read together with the server headers.
Reported by Lee.

15 years agoIgnore:
Fabian Keil [Wed, 26 Nov 2008 18:17:20 +0000 (18:17 +0000)]
Ignore:
Connect: Looks like we read the last chunk together with the server headers. We better stop reading.

15 years agoDon't convert the client-header list to text until we need to.
Fabian Keil [Tue, 25 Nov 2008 17:25:16 +0000 (17:25 +0000)]
Don't convert the client-header list to text until we need to.

15 years agoTwo changes suggested by Roger Dingledine:
Fabian Keil [Mon, 24 Nov 2008 18:29:39 +0000 (18:29 +0000)]
Two changes suggested by Roger Dingledine:
- Use https://www.torproject.org/ in section 4.7, too.
- Replace the Tor wiki URL in section 4.10 with one
  with a more useful anchor name.

15 years agoSome more chat() cosmetics.
Fabian Keil [Sun, 23 Nov 2008 17:00:11 +0000 (17:00 +0000)]
Some more chat() cosmetics.

15 years agoUpdate a log message I missed in 1.80.
Fabian Keil [Sun, 23 Nov 2008 16:06:58 +0000 (16:06 +0000)]
Update a log message I missed in 1.80.

15 years ago- Update copyright range.
Fabian Keil [Sun, 23 Nov 2008 15:59:27 +0000 (15:59 +0000)]
- Update copyright range.
- Remove stray line breaks in a log message
  nobody is supposed to see anyway.

15 years agoIn log_error(), don't surround the thread id with "Privoxy(" and ")".
Fabian Keil [Sun, 23 Nov 2008 15:49:49 +0000 (15:49 +0000)]
In log_error(), don't surround the thread id with "Privoxy(" and ")".

15 years agoSupport log messages with and without
Fabian Keil [Sun, 23 Nov 2008 15:45:45 +0000 (15:45 +0000)]
Support log messages with and without
"Privoxy(" and ")" around the thread id.

15 years agoHighlight:
Fabian Keil [Sat, 22 Nov 2008 11:56:11 +0000 (11:56 +0000)]
Highlight:
Created new connection to www.privoxy.org:80 on socket 11.

15 years agoMove log message around to include the socket number.
Fabian Keil [Sat, 22 Nov 2008 11:54:04 +0000 (11:54 +0000)]
Move log message around to include the socket number.

15 years agoIn case of CONNECT requests there's no point
Fabian Keil [Fri, 21 Nov 2008 18:39:53 +0000 (18:39 +0000)]
In case of CONNECT requests there's no point
in trying to keep the connection alive.

15 years agoAdded -filter to wiktionary.org/.
hal9 [Thu, 20 Nov 2008 11:22:30 +0000 (11:22 +0000)]
Added -filter to wiktionary.org/.

15 years agoUnblock wiktionary.org per tracker feedback.
hal9 [Thu, 20 Nov 2008 11:19:34 +0000 (11:19 +0000)]
Unblock wiktionary.org per tracker feedback.

15 years agoRemove an obsolete comment.
Fabian Keil [Thu, 20 Nov 2008 08:22:28 +0000 (08:22 +0000)]
Remove an obsolete comment.

15 years agoTurn keep-alive support into a runtime feature
Fabian Keil [Sun, 16 Nov 2008 12:43:49 +0000 (12:43 +0000)]
Turn keep-alive support into a runtime feature
that is disabled by setting keep-alive-timeout
to a negative value.

15 years agoMake keep_alive_timeout static.
Fabian Keil [Thu, 13 Nov 2008 09:15:51 +0000 (09:15 +0000)]
Make keep_alive_timeout static.

15 years agoAdd new config option: keep-alive-timeout.
Fabian Keil [Thu, 13 Nov 2008 09:08:42 +0000 (09:08 +0000)]
Add new config option: keep-alive-timeout.

15 years agoAccept and ignore:
Fabian Keil [Mon, 10 Nov 2008 17:17:31 +0000 (17:17 +0000)]
Accept and ignore:
Header: Disabled filter mode on behalf of the client.

15 years agoAdd a fast-redirects exception for .groundspring.org.
Fabian Keil [Mon, 10 Nov 2008 17:16:21 +0000 (17:16 +0000)]
Add a fast-redirects exception for .groundspring.org.

15 years agoFix a gcc44 warning and remove a now-obsolete cast.
Fabian Keil [Mon, 10 Nov 2008 17:03:57 +0000 (17:03 +0000)]
Fix a gcc44 warning and remove a now-obsolete cast.

15 years agoFix a gcc44 warning (in filters.c).
Fabian Keil [Mon, 10 Nov 2008 16:55:59 +0000 (16:55 +0000)]
Fix a gcc44 warning (in filters.c).

15 years agoFix a gcc44 warning.
Fabian Keil [Mon, 10 Nov 2008 16:40:25 +0000 (16:40 +0000)]
Fix a gcc44 warning.

16 years agoMention actual values when complaining about
Fabian Keil [Sat, 8 Nov 2008 15:48:41 +0000 (15:48 +0000)]
Mention actual values when complaining about
the chunk size exceeding the buffer size.

16 years agoHighlight two recently unified log messages properly.
Fabian Keil [Sat, 8 Nov 2008 15:34:30 +0000 (15:34 +0000)]
Highlight two recently unified log messages properly.

16 years agoUnify two debug messages.
Fabian Keil [Sat, 8 Nov 2008 15:29:58 +0000 (15:29 +0000)]
Unify two debug messages.

16 years agoFix duplicated debugging check.
Fabian Keil [Sat, 8 Nov 2008 15:14:05 +0000 (15:14 +0000)]
Fix duplicated debugging check.

16 years agoFix last-chunk detection hack to also apply
Fabian Keil [Thu, 6 Nov 2008 19:42:17 +0000 (19:42 +0000)]
Fix last-chunk detection hack to also apply
if buf[] contains nothing but the last-chunk.

16 years agoFactor receive_client_request() and
Fabian Keil [Thu, 6 Nov 2008 18:34:35 +0000 (18:34 +0000)]
Factor receive_client_request() and
parse_client_request() out of chat().

16 years agoAccept and ignore:
Fabian Keil [Tue, 4 Nov 2008 17:34:45 +0000 (17:34 +0000)]
Accept and ignore:
Header: A HTTP/1.1 response without Connection header implies keep-alive.

16 years agoHTTP/1.1 responses without Connection
Fabian Keil [Tue, 4 Nov 2008 17:20:31 +0000 (17:20 +0000)]
HTTP/1.1 responses without Connection
header imply keep-alive. Act accordingly.

16 years agoMention that the "clear log" view option
Fabian Keil [Mon, 3 Nov 2008 16:51:17 +0000 (16:51 +0000)]
Mention that the "clear log" view option
is based on a patch submitted by T Ford.

16 years agoAccept and ignore "Connect: Unsetting keep-alive flag.".
Fabian Keil [Mon, 3 Nov 2008 16:31:56 +0000 (16:31 +0000)]
Accept and ignore "Connect: Unsetting keep-alive flag.".

16 years agoDocument addition of the "clear log" view option to the Windows version
Lee [Mon, 3 Nov 2008 05:15:26 +0000 (05:15 +0000)]
Document addition of the "clear log" view option to the Windows version
of Privoxy.

16 years agoIf we received a different amount of data than we expected,
Fabian Keil [Sun, 2 Nov 2008 18:40:34 +0000 (18:40 +0000)]
If we received a different amount of data than we expected,
log a warning and make sure the server socket isn't reused.

16 years agoRevert revision 1.195 and try again.
Fabian Keil [Sun, 2 Nov 2008 16:48:20 +0000 (16:48 +0000)]
Revert revision 1.195 and try again.

16 years agocommit the part of the patches I've been using that were written by torford and gjmurphy
Lee [Sun, 2 Nov 2008 14:37:47 +0000 (14:37 +0000)]
commit the part of the patches I've been using that were written by torford and gjmurphy
  [ 1824315 ] Minor code cleanup
  [ 1781135 ] Patch - Add clear log, select all, and Accelerators for w32
    http://sourceforge.net/tracker/?func=detail&atid=311118&aid=1781135&group_id=11118
The full patch adds control keys A(select all), C(copy) and D(delete all) to the
Privoxy log window menu.  Select all and copy work for me without the patch
(albeit without showing the accelerator keys on the menu), so the only part of the
patch I've been using for the last year or so has been the ctrl-d to delete
everything in the Privoxy log window.

16 years agos@higlight@highlight@
Fabian Keil [Sat, 1 Nov 2008 14:12:54 +0000 (14:12 +0000)]
s@higlight@highlight@

16 years agoFix gcc44 warning.
Fabian Keil [Sun, 26 Oct 2008 16:53:18 +0000 (16:53 +0000)]
Fix gcc44 warning.

16 years agoRemove two debug messages with LOG_LEVEL_INFO.
Fabian Keil [Sun, 26 Oct 2008 15:36:10 +0000 (15:36 +0000)]
Remove two debug messages with LOG_LEVEL_INFO.

16 years agoBring back Connection: header tests. Enable the right
Fabian Keil [Sat, 25 Oct 2008 15:49:48 +0000 (15:49 +0000)]
Bring back Connection: header tests. Enable the right
ones based on the status of FEATURE_CONNECTION_KEEP_ALIVE.

16 years agoCosmetics.
Fabian Keil [Sat, 25 Oct 2008 15:45:04 +0000 (15:45 +0000)]
Cosmetics.

16 years agoUnderstand dependencies like:
Fabian Keil [Sat, 25 Oct 2008 15:42:05 +0000 (15:42 +0000)]
Understand dependencies like:
# Level 13 needs = feature status FEATURE_CONNECTION_KEEP_ALIVE Yes
# Level 14 needs = feature status FEATURE_CONNECTION_KEEP_ALIVE No

16 years agoRemove already out-commented line left over from debugging.
Fabian Keil [Sat, 25 Oct 2008 11:33:01 +0000 (11:33 +0000)]
Remove already out-commented line left over from debugging.

16 years ago- Tone the "keep-alive support is experimental" warning
Fabian Keil [Fri, 24 Oct 2008 17:33:00 +0000 (17:33 +0000)]
- Tone the "keep-alive support is experimental" warning
  down a bit as hackish 0-chunk detection has been
  implemented recently.
- Only show the "ndef HAVE_POLL" warning once on start-up.

16 years agoFix forget_connection() and mark_connection_unused(),
Fabian Keil [Thu, 23 Oct 2008 17:40:53 +0000 (17:40 +0000)]
Fix forget_connection() and mark_connection_unused(),
which would both under certain circumstances access
reusable_connection[MAX_REUSABLE_CONNECTIONS]. Oops.

16 years agoOnce More, With Feeling: if there is no logfile
Fabian Keil [Wed, 22 Oct 2008 15:19:55 +0000 (15:19 +0000)]
Once More, With Feeling: if there is no logfile
because the user didn't specify one, we shouldn't
call init_error_log() after receiving SIGHUP either.

16 years agoUpdate init_error_log() description to match reality.
Fabian Keil [Mon, 20 Oct 2008 17:09:25 +0000 (17:09 +0000)]
Update init_error_log() description to match reality.

16 years agoIf SIGHUP is received while we aren't running in daemon
Fabian Keil [Mon, 20 Oct 2008 17:02:40 +0000 (17:02 +0000)]
If SIGHUP is received while we aren't running in daemon
mode, calling init_error_log() would be a mistake.

16 years ago- Factor close_unusable_connections() out of
Fabian Keil [Sat, 18 Oct 2008 19:49:15 +0000 (19:49 +0000)]
- Factor close_unusable_connections() out of
  get_reusable_connection() to make sure we really check
  all the remembered connections, not just the ones before
  the next reusable one.
- Plug two file descriptor leaks. Internally marking
  connections as closed doesn't cut it.

16 years agoIgnore two tests that are only correct if
Fabian Keil [Sat, 18 Oct 2008 16:37:12 +0000 (16:37 +0000)]
Ignore two tests that are only correct if
FEATURE_CONNECTION_KEEP_ALIVE is disabled.

16 years agoAccept two additional keep-alive related messages.
Fabian Keil [Sat, 18 Oct 2008 16:23:51 +0000 (16:23 +0000)]
Accept two additional keep-alive related messages.

16 years agoConnection keep-alive support is ready for testing,
Fabian Keil [Sat, 18 Oct 2008 11:17:52 +0000 (11:17 +0000)]
Connection keep-alive support is ready for testing,
allow enabling it through the configure script.

16 years agoImprove seed used by pick_from_range() on mingw32.
Fabian Keil [Sat, 18 Oct 2008 11:09:23 +0000 (11:09 +0000)]
Improve seed used by pick_from_range() on mingw32.

16 years agoIn socket_is_still_usable(), use select()
Fabian Keil [Fri, 17 Oct 2008 17:12:01 +0000 (17:12 +0000)]
In socket_is_still_usable(), use select()
and FD_ISSET() if poll() isn't available.

16 years agoAdd preliminary timeout support.
Fabian Keil [Fri, 17 Oct 2008 17:07:13 +0000 (17:07 +0000)]
Add preliminary timeout support.

16 years agoFix two gcc44 warnings.
Fabian Keil [Thu, 16 Oct 2008 16:34:21 +0000 (16:34 +0000)]
Fix two gcc44 warnings.

16 years agoFix compiler warning.
Fabian Keil [Thu, 16 Oct 2008 16:27:22 +0000 (16:27 +0000)]
Fix compiler warning.

16 years ago- Fix two gcc44 conversion warnings.
Fabian Keil [Thu, 16 Oct 2008 09:16:41 +0000 (09:16 +0000)]
- Fix two gcc44 conversion warnings.
- Don't bother logging the last five bytes
  of the 0-chunk.

16 years ago- Factor socket_is_still_usable() out of get_reusable_connection().
Fabian Keil [Thu, 16 Oct 2008 07:31:11 +0000 (07:31 +0000)]
- Factor socket_is_still_usable() out of get_reusable_connection().
- If poll() isn't available, show a warning and assume the socket
  is still usable.

16 years agoFix a bunch of gcc44 conversion warnings.
Fabian Keil [Thu, 16 Oct 2008 07:11:34 +0000 (07:11 +0000)]
Fix a bunch of gcc44 conversion warnings.

16 years agoIf a remembered connection is no longer usable and
Fabian Keil [Mon, 13 Oct 2008 17:31:03 +0000 (17:31 +0000)]
If a remembered connection is no longer usable and
has been marked closed, don't bother checking if the
destination matches.

16 years agoMake sure we don't try to reuse tainted server sockets.
Fabian Keil [Mon, 13 Oct 2008 16:04:37 +0000 (16:04 +0000)]
Make sure we don't try to reuse tainted server sockets.

16 years agoThe last commit was a bit too ambitious, apparently the content
Fabian Keil [Sun, 12 Oct 2008 18:35:18 +0000 (18:35 +0000)]
The last commit was a bit too ambitious, apparently the content
length adjustment is only necessary if we aren't buffering.

16 years agoRemove obsolete warning about delayed delivery with chunked
Fabian Keil [Sun, 12 Oct 2008 16:46:35 +0000 (16:46 +0000)]
Remove obsolete warning about delayed delivery with chunked
transfer encoding and FEATURE_CONNECTION_KEEP_ALIVE enabled.

16 years agoFix content length calculation if we read headers
Fabian Keil [Sun, 12 Oct 2008 15:57:35 +0000 (15:57 +0000)]
Fix content length calculation if we read headers
and the start of the body at once. Now that we have
FEATURE_CONNECTION_KEEP_ALIVE, it actually matters.

16 years agoEven more chat() cosmetics.
Fabian Keil [Sat, 11 Oct 2008 18:19:14 +0000 (18:19 +0000)]
Even more chat() cosmetics.

16 years agoReformat some comments in chat().
Fabian Keil [Sat, 11 Oct 2008 18:00:14 +0000 (18:00 +0000)]
Reformat some comments in chat().

16 years agoAdd missing dots for two log messages.
Fabian Keil [Sat, 11 Oct 2008 16:59:41 +0000 (16:59 +0000)]
Add missing dots for two log messages.

16 years agoIn case of chunk-encoded content, stop reading if
Fabian Keil [Sat, 11 Oct 2008 14:58:00 +0000 (14:58 +0000)]
In case of chunk-encoded content, stop reading if
the buffer looks like it ends with the last chunk.

16 years agoAdd FEATURE_CONNECTION_KEEP_ALIVE to the list
Fabian Keil [Sat, 11 Oct 2008 11:31:14 +0000 (11:31 +0000)]
Add FEATURE_CONNECTION_KEEP_ALIVE to the list
of conditional defines on the show-status page.

16 years agoAdd line-breaks for overly long log message examples.
Fabian Keil [Sat, 11 Oct 2008 10:36:58 +0000 (10:36 +0000)]
Add line-breaks for overly long log message examples.

16 years agoAdd support for keep-alive-related log messages.
Fabian Keil [Sat, 11 Oct 2008 10:15:18 +0000 (10:15 +0000)]
Add support for keep-alive-related log messages.

16 years agoLet server_response_is_complete() deal properly with
Fabian Keil [Sat, 11 Oct 2008 09:53:00 +0000 (09:53 +0000)]
Let server_response_is_complete() deal properly with
content that is neither buffered nor read all at once.

16 years agoFlush work-in-progress changes to keep outgoing connections
Fabian Keil [Thu, 9 Oct 2008 18:21:41 +0000 (18:21 +0000)]
Flush work-in-progress changes to keep outgoing connections
alive where possible. Incomplete and mostly #ifdef'd out.

16 years agoReturn only once in forwarded_connect().
Fabian Keil [Sat, 27 Sep 2008 15:05:51 +0000 (15:05 +0000)]
Return only once in forwarded_connect().

16 years ago- Break some more CVS substitutions in examples.
Fabian Keil [Fri, 26 Sep 2008 17:02:01 +0000 (17:02 +0000)]
- Break some more CVS substitutions in examples.
- Remove Junkbusters reference in example header
  for new files.

16 years agoUpdate "What's new" section.
Fabian Keil [Fri, 26 Sep 2008 16:53:09 +0000 (16:53 +0000)]
Update "What's new" section.

16 years agoFix entry count.
Fabian Keil [Fri, 26 Sep 2008 16:49:09 +0000 (16:49 +0000)]
Fix entry count.

16 years agoMention mutex locks on mingw32.
Fabian Keil [Fri, 26 Sep 2008 16:01:45 +0000 (16:01 +0000)]
Mention mutex locks on mingw32.

16 years agoFix Portage tree sync instructions in Gentoo section.
Fabian Keil [Sun, 21 Sep 2008 15:38:56 +0000 (15:38 +0000)]
Fix Portage tree sync instructions in Gentoo section.
Anonymously reported at ijbswa-developers@.

16 years agoRebuild for change-x-forwarded-for{} documentation.
Fabian Keil [Sun, 21 Sep 2008 15:19:31 +0000 (15:19 +0000)]
Rebuild for change-x-forwarded-for{} documentation.

16 years agoUse +change-x-forwarded-for{block} instead of
Fabian Keil [Sun, 21 Sep 2008 14:45:05 +0000 (14:45 +0000)]
Use +change-x-forwarded-for{block} instead of
+hide-forwarded-for-headers.

16 years agoAdd documentation for change-x-forwarded-for{},
Fabian Keil [Sun, 21 Sep 2008 14:42:52 +0000 (14:42 +0000)]
Add documentation for change-x-forwarded-for{},
remove documentation for hide-forwarded-for-headers.

16 years agoTreat unknown change-x-forwarded-for parameters as fatal errors.
Fabian Keil [Sun, 21 Sep 2008 13:59:33 +0000 (13:59 +0000)]
Treat unknown change-x-forwarded-for parameters as fatal errors.