]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
17 years agoDrop ancient TODO list into wiki instead
Amos Jeffries [Tue, 14 Oct 2008 12:57:32 +0000 (01:57 +1300)] 
Drop ancient TODO list into wiki instead

17 years agoUpdate ChangeLog for 3.1.0.1
Amos Jeffries [Tue, 14 Oct 2008 12:47:17 +0000 (01:47 +1300)] 
Update ChangeLog for 3.1.0.1

17 years agoBug 1441: tcp_outgoing_address + peering need acl matching actual endpoint
Amos Jeffries [Tue, 14 Oct 2008 09:54:26 +0000 (22:54 +1300)] 
Bug 1441: tcp_outgoing_address + peering need acl matching actual endpoint

Adds the 'peername' ACL to match against the cache_peer name=X values.

Also, adds peername ACL tests to tcp_outgoing_addr.

NOTE:  Only checks against the first peer of all possible peers selected for
the connection. So on failures the outgoing address may still be incorrect for
the secondary peers.

Thanks for testing to Andrew McMillan <andrew@morphoss.com>

17 years agoRemove several unnecessary uses of putStrf and a compile error
Amos Jeffries [Mon, 13 Oct 2008 11:29:06 +0000 (00:29 +1300)] 
Remove several unnecessary uses of putStrf and a compile error

17 years agoAdd configure option --with-logdir=PATH for change of the log directory
Amos Jeffries [Mon, 13 Oct 2008 09:41:25 +0000 (22:41 +1300)] 
Add configure option --with-logdir=PATH for change of the log directory

Not all OS and builds can cope with the BSD /var/logs default.
This lets users and maintainers set OS-dependant log location without
needing to patch and bootstrap the code.

17 years agoCorrect settings for v4-mapped.
Amos Jeffries [Mon, 13 Oct 2008 06:29:59 +0000 (19:29 +1300)] 
Correct settings for v4-mapped.

Its always useful in IPv6. Unless split-stack has been requested.

17 years agoUpdate public IPv6 configure sub-options.
Amos Jeffries [Sun, 12 Oct 2008 23:50:38 +0000 (12:50 +1300)] 
Update public IPv6 configure sub-options.

Drop all mention of CNAME recursion. Still buggy and experimental.

Alter --with-ipv4-mapping to default ON.
This is harmless if system defaults it to ON. But resolves problems
seen with systems where OS default is OFF disabling this advanced
hybrid-stack feature which squid needs.
Seen in some Linux, FreeBSD 7.1, OpenBSD, and Vista.

17 years agoWindows port: Fix build error using latest MinGW runtime.
Guido Serassio [Sun, 12 Oct 2008 18:52:33 +0000 (20:52 +0200)] 
Windows port: Fix build error using latest MinGW runtime.

17 years agoRevert r9281. fubar.
Amos Jeffries [Sun, 12 Oct 2008 10:49:30 +0000 (23:49 +1300)] 
Revert r9281. fubar.

17 years agoAuthor: Klaus Singvogel <kssingvo@suse.de>
Amos Jeffries [Sun, 12 Oct 2008 08:10:11 +0000 (21:10 +1300)] 
Author: Klaus Singvogel <kssingvo@suse.de>
Bug 2483: bind() called before connect()

17 years agoTypo.
Amos Jeffries [Sun, 12 Oct 2008 04:39:24 +0000 (17:39 +1300)] 
Typo.

17 years agoBoost debug output on socket FDs
Amos Jeffries [Sun, 12 Oct 2008 02:33:07 +0000 (15:33 +1300)] 
Boost debug output on socket FDs

17 years agoAuthor: Steve Bennett <S.Bennett@lancaster.ac.uk>
Amos Jeffries [Sat, 11 Oct 2008 04:03:38 +0000 (17:03 +1300)] 
Author: Steve Bennett <S.Bennett@lancaster.ac.uk>
Bug 2486: SEGV at startup due to URLHostName

17 years agoMake srcformat.sh script portable
Amos Jeffries [Sat, 11 Oct 2008 03:39:28 +0000 (16:39 +1300)] 
Make srcformat.sh script portable

Made smart enough to locate its own ROOT properly if run from bzr branch

Made it revert unsafely re-formatted files to prevent accidental commits
Now leaves a *.astylebad containing the attempted reformat for comparison

Removed bashisms to make script properly /bin/sh executable

17 years agoSourceFormat: Main reformat push
Amos Jeffries [Fri, 10 Oct 2008 08:02:53 +0000 (21:02 +1300)] 
SourceFormat: Main reformat push

This revision formats all .h .c .cc .cci files according to the
code format chosen for Squid-3 releases in future.

Due to outstanding patches which are not easily adapted a few files
have been omitted from this particular format push:

  src/comm.cc
  src/client_side.cc
  src/client_side.h
  src/errorpage.cc
  src/fde.h
  src/ftp.cc
  src/http.cc
  src/HttpRequest.cc
  src/pconn.cc
  src/pconn.h
  src/ICAP/ICAPModXact.cc
  src/ICAP/ICAPModXact.h
  src/ICAP/ICAPOptions.cc
  src/ICAP/ICAPServiceRep.cc
  src/ICAP/ICAPServiceRep.h
  src/ICAP/ICAPXaction.cc
  src/ICAP/ICAPXaction.h
  src/Server.cc
  src/Server.h
  src/structs.h

17 years agoUpdates for running on squid-cache.org
Amos Jeffries [Fri, 10 Oct 2008 05:02:56 +0000 (23:02 -0600)] 
Updates for running on squid-cache.org

17 years agoAuthor: Alex Rousskov <rousskov@squid-cache.org>
Amos Jeffries [Fri, 10 Oct 2008 04:21:30 +0000 (17:21 +1300)] 
Author: Alex Rousskov <rousskov@squid-cache.org>
Fix compile errors with std::exception

17 years agoUpdated FwdState::updateHierarchyInfo() documentation with Henrik's comment
Alex Rousskov [Thu, 9 Oct 2008 17:11:31 +0000 (11:11 -0600)] 
Updated FwdState::updateHierarchyInfo() documentation with Henrik's comment
that was about to be lost in a closed bug #2391 report.

17 years agoFix recursion inside srcformat script after rename
Amos Jeffries [Thu, 9 Oct 2008 13:12:07 +0000 (02:12 +1300)] 
Fix recursion inside srcformat script after rename

17 years agoSourceFormat: Convert md5checker script into a recursive formatter+validator
Amos Jeffries [Thu, 9 Oct 2008 13:00:28 +0000 (02:00 +1300)] 
SourceFormat: Convert md5checker script into a recursive formatter+validator

This converts the md5 validation script from a single layer to a
recursive script.

Given a directory path calls the formater.pl script for all .h .c .cc and
.cci files within. Validating each file conversion as it goes and aborts
at the first error found.

This is intended for maintenance of the central Squid-3 repository code.

NP: As with the original checker its a bash script.
    Probably non-portable right now without adaptions.

17 years agoProperly fix squid_kerb_auth configure recursion
Henrik Nordstrom [Wed, 8 Oct 2008 22:39:31 +0000 (00:39 +0200)] 
Properly fix squid_kerb_auth configure recursion

17 years agoUpdate squid_kerb_auth bundled files
Amos Jeffries [Wed, 8 Oct 2008 06:17:12 +0000 (19:17 +1300)] 
Update squid_kerb_auth bundled files

reconf should not be needed. Squid bootstrap.sh does all that.
It ws not provided to us in the official 1.0.3 bundle anyway.

Also other sub-project attribution files should to be bundled with Squid.

17 years agoDocument the reply_body_max_size line format
Amos Jeffries [Wed, 8 Oct 2008 05:46:03 +0000 (18:46 +1300)] 
Document the reply_body_max_size line format

17 years agoFix: Unsupported tag name: yes
Amos Jeffries [Tue, 7 Oct 2008 10:39:12 +0000 (04:39 -0600)] 
Fix: Unsupported tag name: yes

--with-tags is documented by configure as having optional parameter
this is not true. The parameter is required.

17 years agoFix: cfgaux/configure failed for helpers/negotiate_auth/squid_kerb_auth
Amos Jeffries [Tue, 7 Oct 2008 10:20:21 +0000 (04:20 -0600)] 
Fix: cfgaux/configure failed for helpers/negotiate_auth/squid_kerb_auth

Turns out that it needed to be added to the bootstrap system as well
as made a sub-configure.

Also move sub-configure to only occure when the helper needs to be built.
There is no need to waste time configuring dead code.

17 years agoSnapshot 3.1 branch
Amos Jeffries [Mon, 6 Oct 2008 12:18:42 +0000 (06:18 -0600)] 
Snapshot 3.1 branch

17 years agoCompile error. Cast was needed
Amos Jeffries [Mon, 6 Oct 2008 11:26:47 +0000 (00:26 +1300)] 
Compile error. Cast was needed

17 years agoAuthor: Markus Moeller <markus_moeller@compuserve.com>
Amos Jeffries [Mon, 6 Oct 2008 10:14:06 +0000 (23:14 +1300)] 
Author: Markus Moeller <markus_moeller@compuserve.com>
Update squid_kerb_auth helper to 1.0.3 release

Also add missing config.test file (empty) so
 --enable-negotiate-auth-helpers=X will build it with Squid.

  squid_kerb_auth 1.0.3 Official ReadMe file:

--------------------------------------------------------------------------------
readme.txt is the squid_kerb_auth read-me file.

Author: Markus Moeller (markus_moeller at compuserve.com)

Copyright (C) 2007 Markus Moeller. All rights reserved.
--------------------------------------------------------------------------------

squid_kerb_auth Read Me

Markus Moeller
May 12, 2007

1 Introduction

squid_kerb_auth is a reference implementation that supports authentication via
the Negotiate RFC 4559 for proxies. It decodes RFC 2478 SPNEGO GSS-API tokens
from IE7 either through helper functions or via SPNEGO supporting Kerberos libraries
and RFC 1964 Kerberos tokens from Firefox on Linux. Currently, squid_kerb_auth
 supports Squid 2.6 on Linux.

squid_auth_kerb requires either MIT or Heimdal Kerberos libraries and header files.

2 Building and Installation

Run ./configure

for help use ./configure --help

Copy the helper squid_kerb_auth to an apropriate directory.

3 Configuration

a) Configure IE or Firefox to point to the squid proxy by using the fqdn. IE and Firefox will use the
fqdn to query for a HTTP/fqdn Kerberos service principal.

b) Create a keytab which contains the HTTP/fqdn Kerberos service principal and place it into a directory
where the squid run user can read the keytab.

c) Add the following line to squid.conf

auth_param negotiate program /usr/sbin/squid_kerb_auth
auth_param negotiate children 10
auth_param negotiate keep_alive on

d) Modify squid startup file

Add the following lines to the squid startup script to point squid to a keytab file which
contains the HTTP/fqdn service principal for the default Kerberos domain. The fqdn must be
the proxy name set in IE or firefox. You can not use an IP address.

KRB5_KTNAME=/etc/squid/HTTP.keytab
export KRB5_KTNAME

If you use a different Kerberos domain than the machine itself is in you can point squid to
the seperate Kerberos config file by setting the following environmnet variable in the startup
script.

KRB5_CONFIG=/etc/krb-squid5.conf
export KRB5_CONFIG

4 Miscellaneous

If squid_kerb_auth doesn't determine for some reason the right service principal you can provide
it with -s HTTP/fqdn.

If you serve multiple Kerberos realms add a HTTP/fqdn@REALM service principal per realm to the
HTTP.keytab file and use the -s GSS_C_NO_NAME option with squid_kerb_auth.

17 years agoMerge from trunk
Amos Jeffries [Mon, 6 Oct 2008 10:08:10 +0000 (23:08 +1300)] 
Merge from trunk

17 years agoTestBed: maximum build run
Amos Jeffries [Mon, 6 Oct 2008 08:17:53 +0000 (21:17 +1300)] 
TestBed: maximum build run

17 years agoUpdate cf_gen_defines to match code
Amos Jeffries [Sun, 5 Oct 2008 12:50:18 +0000 (01:50 +1300)] 
Update cf_gen_defines to match code

17 years agoBug 2474: action 'menu' is hidden but should not be
Amos Jeffries [Sun, 5 Oct 2008 02:00:03 +0000 (15:00 +1300)] 
Bug 2474: action 'menu' is hidden but should not be

17 years agoBug 2393: DNS requests getting stuck in idns queue
Amos Jeffries [Sun, 5 Oct 2008 01:39:55 +0000 (14:39 +1300)] 
Bug 2393: DNS requests getting stuck in idns queue

Port of Squid-2 fix by Henrik Nordstrom

There seems to be two problems here.

a) On TCP communication failure Squid starts to restransmit the TCP query as
fast as it can, with no bounds checking. Keeps doing that until there is a
response or Squid is restarted...

b) For some reason the retransmit queue seems to halt for you. I have not yet
reproduced this issue, but may be related to the first..

17 years agoAuthor: Henrik Nordstrom <hno@squid-cache.org>
Amos Jeffries [Sun, 5 Oct 2008 01:32:47 +0000 (14:32 +1300)] 
Author: Henrik Nordstrom <hno@squid-cache.org>
Bug 2447: pt 1: Segfault on failed TCP DNS query

Adds debug messages for better tracking.
Aborts fatal operations early.

17 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
Amos Jeffries [Sat, 4 Oct 2008 12:46:16 +0000 (01:46 +1300)] 
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Port Connection Pinning from 2.6

17 years agoReal: Fix NO DEFAULT compile errors
Amos Jeffries [Sat, 4 Oct 2008 11:13:57 +0000 (00:13 +1300)] 
Real: Fix NO DEFAULT compile errors

17 years agoUndo r9254. Bad mixed commit
Amos Jeffries [Sat, 4 Oct 2008 11:11:41 +0000 (00:11 +1300)] 
Undo r9254. Bad mixed commit

17 years agoAdd config.test for squid_kerberos_auth helper
Amos Jeffries [Sat, 4 Oct 2008 08:03:52 +0000 (21:03 +1300)] 
Add config.test for squid_kerberos_auth helper

File is empty. It exists only go let the configure tests for
--enable-negotiate-auth-helpers=all detect the helper is okay for build.

17 years agoMerge from trunk
Amos Jeffries [Sat, 4 Oct 2008 07:35:59 +0000 (20:35 +1300)] 
Merge from trunk

17 years agoFix NO DEFAULT compile errors
Amos Jeffries [Sat, 4 Oct 2008 07:33:01 +0000 (20:33 +1300)] 
Fix NO DEFAULT compile errors

17 years agoLink new helper into Squid autotools chain
Amos Jeffries [Fri, 3 Oct 2008 02:57:19 +0000 (15:57 +1300)] 
Link new helper into Squid autotools chain

17 years agoImport new helper code.
Amos Jeffries [Fri, 3 Oct 2008 02:25:50 +0000 (15:25 +1300)] 
Import new helper code.

17 years agoBug #2447: Segfault on failed TCP DNS query
Henrik Nordstrom [Thu, 2 Oct 2008 13:45:54 +0000 (15:45 +0200)] 
Bug #2447: Segfault on failed TCP DNS query

This patch makes Squid log the DNS failure if it fails to connect to
a DNS server over TCP. TCP is required if the DNS response do not fit
within the small DNS UDP packet size (ca 0.5kb).

17 years agoConverity detected. inconsistent error detection on StoreIOBUffer
Amos Jeffries [Thu, 2 Oct 2008 12:24:09 +0000 (01:24 +1300)] 
Converity detected. inconsistent error detection on StoreIOBUffer

Audit reveals only one of several callers which might set negative length
state were checking for it and setting error flag properly.

Makes more sense for the StoreIOBuffer constructor to do its own
error state detection with information than to offload on callers.

17 years agoCoverity detected possible NULL dereference.
Amos Jeffries [Thu, 2 Oct 2008 11:37:19 +0000 (00:37 +1300)] 
Coverity detected possible NULL dereference.

KK message response with exactly zero-length encrypted data component
will cause Squid fakeauth helper to crash.

Not expected in normal operation. But maybe seen with specially crafted
or rare mangled responses.

17 years agoVeto: r9250. bad patch.
Amos Jeffries [Thu, 2 Oct 2008 11:28:58 +0000 (00:28 +1300)] 
Veto: r9250. bad patch.

17 years agoBug #2447: Segfault on failed TCP DNS query
Henrik Nordstrom [Wed, 1 Oct 2008 20:25:41 +0000 (22:25 +0200)] 
Bug #2447: Segfault on failed TCP DNS query

This patch makes Squid log the DNS failure if it fails to connect to
a DNS server over TCP. TCP is required if the DNS response do not fit
within the small DNS UDP packet size (ca 0.5kb).

This patch apparently do not solve the segmentation fault, but at least
logs the condition properly.

17 years agoRemoved UNUSED_CODE guards around check_null_access_log() because it is still
Alex Rousskov [Tue, 30 Sep 2008 20:36:15 +0000 (14:36 -0600)] 
Removed UNUSED_CODE guards around check_null_access_log() because it is still
used.  I do not know whether the latter is a bug, so this fix may be wrong,
but it allows trunk to build.

17 years agoRemoved extra ICAPConfig* parameter from depricated ICAP config functions.
Alex Rousskov [Tue, 30 Sep 2008 19:48:54 +0000 (13:48 -0600)] 
Removed extra ICAPConfig* parameter from depricated ICAP config functions.
I have fixed this bug before, but in the generated file :-(

17 years agoeCAP support, phase 2: Implemented libecap interfaces, added eCAP
Alex Rousskov [Tue, 30 Sep 2008 18:17:32 +0000 (12:17 -0600)] 
eCAP support, phase 2: Implemented libecap interfaces, added eCAP
squid.conf options. Link with libecap when eCAP support is enabled.

eCAP code needs polishing and enhancement but appears to work for a few
targeted cases. I am committing this now so that users working on eCAP
modules can test and provide more specific feedback.

These adaptation-specific changes should not have significant effect on
core code.

The libecap library is available at http://www.e-cap.org/

17 years ago Merged from trunk.
Alex Rousskov [Tue, 30 Sep 2008 17:35:37 +0000 (11:35 -0600)] 
  Merged from trunk.
  These were eCAP,p2-inspired changes that were committed separately.

17 years agoCatch most exceptions in main() to report exceptions uncaught by Squid. This
Alex Rousskov [Tue, 30 Sep 2008 17:28:53 +0000 (11:28 -0600)] 
Catch most exceptions in main() to report exceptions uncaught by Squid.  This
is for last resort reporting only -- the program would exit anyway (usually
with less information) if we did not catch these.

The code re-throws caught exceptions to reduce side effects of catching it,
just in case. May need more work depending on how compilers handle rethrowing.

These changes were inspired by eCAP.

17 years agoMerged from trunk.
Alex Rousskov [Tue, 30 Sep 2008 17:19:29 +0000 (11:19 -0600)] 
Merged from trunk.
These were eCAP,p2-inspired changes that were committed separately.

17 years agoSynced after adding HttpMsg::clone().
Alex Rousskov [Tue, 30 Sep 2008 17:15:28 +0000 (11:15 -0600)] 
Synced after adding HttpMsg::clone().

17 years agoAdded HttpRequest::clone, completing HttpMsg::clone API. When ICAP is
Alex Rousskov [Tue, 30 Sep 2008 16:59:13 +0000 (10:59 -0600)] 
Added HttpRequest::clone, completing HttpMsg::clone API. When ICAP is
converted to use this, it should work faster for a common "no modifications"
case because it would not have to print and parse the headers.

TODO: Consider renaming the method since it does not produce an exact,
true replica. Some connection-related flags and peer settings are not
cloned because the clone is not always "attached" or "coming from"
the same connection (e.g., it is cloned for eCAP to modify). We may also
#ifdef the method if it is not needed outside of adaptation code.

The HttpMsg::body_pipe field is now copied when a message is cloned.
I was not sure what the right thing to do there is. The field itself
may be misplaced (it is not about the message structure or properties,
but about the current body transfer state, but we lack a good place to
store that...).  To reduce the number of cloning exceptions, and since
eCAP and probably ICAP code benefit from pipe copying, it is copied
for now. It would not be too hard to change.

17 years agoPolished ServerStateData cleanup code: Moved more cleanup code from the
Alex Rousskov [Tue, 30 Sep 2008 16:32:18 +0000 (10:32 -0600)] 
Polished ServerStateData cleanup code: Moved more cleanup code from the
destructor with its dangers of half-destroyed context to safe swanSong.

17 years agoMade TextException a child of std::exception so that it is easier to catch
Alex Rousskov [Tue, 30 Sep 2008 16:21:43 +0000 (10:21 -0600)] 
Made TextException a child of std::exception so that it is easier to catch
more exceptions (standard and custom) with one catch(). The catching code
usually does not care what the exception is anyway.

TextException needs more work to report more information in what() method.

Catch std::exception to catch more printable exceptions. TextException is an
std::exception [child].

These changes were inspired by and required for eCAP.

17 years agoPolished BodyPipe API. No runtime changes expected.
Alex Rousskov [Tue, 30 Sep 2008 16:16:23 +0000 (10:16 -0600)] 
Polished BodyPipe API. No runtime changes expected.

17 years agoMerged from trunk.
Alex Rousskov [Tue, 30 Sep 2008 15:50:26 +0000 (09:50 -0600)] 
Merged from trunk.

17 years agoconfig cleanup: make log defaults optional.
Amos Jeffries [Tue, 30 Sep 2008 13:20:24 +0000 (01:20 +1200)] 
config cleanup: make log defaults optional.

access.log at least can have multiple logs defined. Declaring an
unconditional default is not a good idea.

Same goes for cache.log default despite its different design.

Now only define their default if none given by the user.

17 years agoRevert active part of error page stylesheets.
Amos Jeffries [Tue, 30 Sep 2008 06:36:50 +0000 (18:36 +1200)] 
Revert active part of error page stylesheets.

Strange Install blocker bug found. No solution yet.

(19:04:54) rousskov: 2008/09/30 00:05:20| errorpage.cc(290) errorTryLoadText:
 '/usr/local/squid3-ecap/share/errors/templates//usr/local/squid3-ecap/etc/errorpage.css':
 (2) No such file or directory
(19:07:52) rousskov: $ make install > /tmp/tm
(19:07:52) rousskov: /bin/bash: -c: line 17: syntax error near unexpected token `then'
(19:07:52) rousskov: /bin/bash: -c: line 17: `@if test -f /usr/local/squid3-ecap/etc/errorpage.css ; then \'

17 years agoTo keep swanSong() checks simple, we need to NULL-ify vb body_pipe even if
Alex Rousskov [Tue, 30 Sep 2008 06:33:34 +0000 (00:33 -0600)] 
To keep swanSong() checks simple, we need to NULL-ify vb body_pipe even if
we never were a consumer (because of useVirgin short circuiting).

For useVirgin() cloning to work when we were a consumer, we need to clone
before we clear the consumer (and body_pipe with it).

The whole thing is icky. This should be improved when Adaptation::Message does
not have to store a copy of body_pipe (there is already a TODO for that,
IIRC).

17 years agoMerged from trunk.
Alex Rousskov [Tue, 30 Sep 2008 06:30:52 +0000 (00:30 -0600)] 
Merged from trunk.

17 years agoFix: stylesheet has proper path. does not need new prefix
Amos Jeffries [Tue, 30 Sep 2008 05:59:26 +0000 (17:59 +1200)] 
Fix: stylesheet has proper path. does not need new prefix

17 years agoMerged from trunk.
Alex Rousskov [Tue, 30 Sep 2008 04:52:40 +0000 (22:52 -0600)] 
Merged from trunk.

17 years agoSynced with libecap::Body simplifications.
Alex Rousskov [Tue, 30 Sep 2008 04:43:46 +0000 (22:43 -0600)] 
Synced with libecap::Body simplifications.

17 years agoSourceFormat: include/
Amos Jeffries [Mon, 29 Sep 2008 10:06:57 +0000 (22:06 +1200)] 
SourceFormat: include/

17 years agoSourceFormat: include/
Amos Jeffries [Mon, 29 Sep 2008 09:56:06 +0000 (22:56 +1300)] 
SourceFormat: include/

17 years agoLog to cache.log what languages users are attempting to auto-negotiate for translations.
Amos Jeffries [Mon, 29 Sep 2008 08:36:52 +0000 (21:36 +1300)] 
Log to cache.log what languages users are attempting to auto-negotiate for translations.

Successful negotiations are not logged. Only failures
have meaning to indicate that Squid may need an upgrade
of its error page translations.

17 years agoMade "make check" happy.
Alex Rousskov [Mon, 29 Sep 2008 08:25:20 +0000 (02:25 -0600)] 
Made "make check" happy.

17 years agoCatch std::exception (instead of a more specific TextException) to catch
Alex Rousskov [Mon, 29 Sep 2008 07:46:55 +0000 (01:46 -0600)] 
Catch std::exception (instead of a more specific TextException) to catch
more exceptions. We do not care what exception we actually caught anyway.

17 years agoRemoved unused ICAP-only static declarations and definitions.
Alex Rousskov [Mon, 29 Sep 2008 07:45:11 +0000 (01:45 -0600)] 
Removed unused ICAP-only static declarations and definitions.

17 years agoCatch std::exception to catch more printable exceptions. TextException is
Alex Rousskov [Mon, 29 Sep 2008 07:28:13 +0000 (01:28 -0600)] 
Catch std::exception to catch more printable exceptions. TextException is
not an std::exception [child].

Rethrow exceptions caught in main() to minimize catching side-effects. May
need more work.

17 years agoMerged from trunk.
Alex Rousskov [Mon, 29 Sep 2008 06:42:09 +0000 (00:42 -0600)] 
Merged from trunk.

17 years agoFixed indentation.
Alex Rousskov [Mon, 29 Sep 2008 06:03:57 +0000 (00:03 -0600)] 
Fixed indentation.

17 years agoSynced with minor libecap API changes
Alex Rousskov [Mon, 29 Sep 2008 05:46:28 +0000 (23:46 -0600)] 
Synced with minor libecap API changes

17 years agoCSS control over translated error pages
Amos Jeffries [Mon, 29 Sep 2008 04:53:52 +0000 (16:53 +1200)] 
CSS control over translated error pages

Adds %l replacement tag to include CSS file data into an error page.

Adds error_stylesheet option to name a file as the CSS content to insert
into each error pages displayed. (default /etc/squid/errorpage.css)

Adds CSS hooks into the templates.

Adds errorpage.css to squid config directory with current CSS settings
pulled from old templates and demo entries for new hooks.

The combined effect of these is allows company sites to stylize the pages
produced to some extent limited only by the CSS capabilities. Without
worrying about translation texts themselves.

Only works for dynamically translated pages based on updated templates.
Default CSS file may need some cleaning.

17 years agoCompile errors
Amos Jeffries [Mon, 29 Sep 2008 04:52:22 +0000 (16:52 +1200)] 
Compile errors

17 years agoPolished code by introducing two explicit and mostly independent states
Alex Rousskov [Mon, 29 Sep 2008 03:50:32 +0000 (21:50 -0600)] 
Polished code by introducing two explicit and mostly independent states
(proxying virgin body and proxying adapted body) as well as a flag to
check for virgin body content access after the pipe was invalidated.

17 years agoPOT update
Amos Jeffries [Mon, 29 Sep 2008 03:09:18 +0000 (15:09 +1200)] 
POT update

17 years agoMerge from trunk
Amos Jeffries [Mon, 29 Sep 2008 03:03:47 +0000 (15:03 +1200)] 
Merge from trunk

17 years agoLanguages: various additions.
Amos Jeffries [Mon, 29 Sep 2008 02:57:07 +0000 (14:57 +1200)] 
Languages: various additions.

17 years agoFixed memory leak: MessageRep was not destroying theFirstLine.
Alex Rousskov [Sun, 28 Sep 2008 18:54:31 +0000 (12:54 -0600)] 
Fixed memory leak: MessageRep was not destroying theFirstLine.

17 years agoUpdates auto-save
Amos Jeffries [Sun, 28 Sep 2008 18:01:24 +0000 (06:01 +1200)] 
Updates auto-save

17 years agoSynced with the new libecap pull-pull interface where the host pulls
Alex Rousskov [Sun, 28 Sep 2008 17:53:44 +0000 (11:53 -0600)] 
Synced with the new libecap pull-pull interface where the host pulls
adapted body and the adapter pulls virgin body.

17 years agoWhen adding a body_pipe to adaptation message, do not forget to update
Alex Rousskov [Sun, 28 Sep 2008 17:34:36 +0000 (11:34 -0600)] 
When adding a body_pipe to adaptation message, do not forget to update
the raw header as well.

17 years agoPolished comments: duplication of body_pipe leads to coding bugs when adding
Alex Rousskov [Sun, 28 Sep 2008 17:27:56 +0000 (11:27 -0600)] 
Polished comments: duplication of body_pipe leads to coding bugs when adding
a pipe to a message.
No functional changes.

17 years agoFixed comm_close handling in deferred reads. The code was expecting old-style
Alex Rousskov [Sun, 28 Sep 2008 14:48:27 +0000 (08:48 -0600)] 
Fixed comm_close handling in deferred reads. The code was expecting old-style
comm_remove_close_handler call to work if the close handler has not been
dialed yet. We now store a new-style callback so that we can reliably cancel
the close hander call.

Removed all methods from CommRead except for constructors. Apparently,
they were all unused and most were not even defined.

17 years agoLanguage: Czech Translation
Amos Jeffries [Sun, 28 Sep 2008 12:44:01 +0000 (00:44 +1200)] 
Language: Czech Translation

17 years agoLanguage: Chinese Translation
Amos Jeffries [Sun, 28 Sep 2008 12:43:07 +0000 (00:43 +1200)] 
Language: Chinese Translation

17 years agoLanguage: Japanese Translation
Amos Jeffries [Sun, 28 Sep 2008 12:42:17 +0000 (00:42 +1200)] 
Language: Japanese Translation

17 years agoNew suggestions. Unverified.
Amos Jeffries [Sun, 28 Sep 2008 12:41:46 +0000 (00:41 +1200)] 
New suggestions. Unverified.

17 years agoupdate acording to bugzilla comment 11
Amos Jeffries [Sun, 28 Sep 2008 10:02:57 +0000 (22:02 +1200)] 
update acording to bugzilla comment 11

17 years agoImport from bugzilla
Amos Jeffries [Sun, 28 Sep 2008 10:00:08 +0000 (22:00 +1200)] 
Import from bugzilla

17 years agoLanguage: Bulgarian Translation
Amos Jeffries [Sun, 28 Sep 2008 09:51:16 +0000 (21:51 +1200)] 
Language: Bulgarian Translation

17 years agoAdded pipe cleanup to swanSong, used when we terminate unexpectedly.
Alex Rousskov [Sun, 28 Sep 2008 01:20:37 +0000 (19:20 -0600)] 
Added pipe cleanup to swanSong, used when we terminate unexpectedly.

Polished debugging, added temporary detailed debugging.

17 years agoMade TextException a child of std::exception so that it is easier to catch
Alex Rousskov [Sun, 28 Sep 2008 01:16:18 +0000 (19:16 -0600)] 
Made TextException a child of std::exception so that it is easier to catch
more exceptions (standard and custom) with one catch(). The catching code
usually does not care what the exception is anyway.

TextException needs more work to report more information in what() method.

17 years agoMerged from trunk.
Alex Rousskov [Sat, 27 Sep 2008 18:33:49 +0000 (12:33 -0600)] 
Merged from trunk.

17 years agoSummary: Synced with libecap, adopted pass-all-changes-through transactions
Alex Rousskov [Sat, 27 Sep 2008 18:28:58 +0000 (12:28 -0600)] 
Summary: Synced with libecap, adopted pass-all-changes-through transactions
model.  Polished. Needs more work.

17 years agostillProducing and stillConsuming do not modify their arguments.
Alex Rousskov [Sat, 27 Sep 2008 18:19:22 +0000 (12:19 -0600)] 
stillProducing and stillConsuming do not modify their arguments.