]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
17 years agoError page stylesheets
Amos Jeffries [Mon, 15 Sep 2008 14:29:36 +0000 (02:29 +1200)] 
Error page stylesheets

* Adds %l option for adding CSS code to HTML output
* Adds error_stylesheet option to squid.conf for a filename to use
* Installs default CSS file errorpage.css in config directory
* Adds CSS tags and %l to all error templates
  (in a way that keeps the %l from causing trouble to older Squid)

Code portion loads the CSS file on startup, and merges the CSS as inline
with HTML wherever the %l option is present in HTML error files.

17 years agoTypo blockign HEAD langpack generation
Amos Jeffries [Mon, 15 Sep 2008 12:38:22 +0000 (06:38 -0600)] 
Typo blockign HEAD langpack generation

17 years agovarious MemBuf documentation
Amos Jeffries [Mon, 15 Sep 2008 07:56:11 +0000 (19:56 +1200)] 
various MemBuf documentation

17 years agoAuthor: Tsantilas Christos <christos@chtsanti.net>
Amos Jeffries [Sun, 14 Sep 2008 13:40:03 +0000 (01:40 +1200)] 
Author: Tsantilas Christos <christos@chtsanti.net>
Source code formatting scripts

formater.pl
    Script to format source files with the astyle utility
    NP: Squid code requires astyle version 1.22 or later

md5checker.sh
    Scritp to validate the formater.pl script did not alter the code
    syntax in any way. All non-whitespace alterations are reported
    as bungled files for manual auditing.

17 years agoBuild Errors
Amos Jeffries [Sun, 14 Sep 2008 10:10:29 +0000 (22:10 +1200)] 
Build Errors

17 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
Amos Jeffries [Sat, 13 Sep 2008 13:43:00 +0000 (01:43 +1200)] 
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Bug 2219: pconn status logic errors when getting chunks

The problem here is that chunk-decoding was wrongly using the eof to mark
the last chunk (look at method HttpStateData::decodeAndWriteReplyBody).
The eof used in HttpStateData to mark that the connection probably closed so
another flag must be used to mark that the last chunk received.

This patch uses the HttpStateData::lastChunk flag to mark that the last chunk
received. Maybe the flag should be moved to  http_state_flags struct or a
general flag "complete" should used to mark that the whole body received.

17 years agoBug 2363: Install Error: comparison between signed and unsigned int
Amos Jeffries [Sat, 13 Sep 2008 11:59:49 +0000 (23:59 +1200)] 
Bug 2363: Install Error: comparison between signed and unsigned int

FreeBSD 7 now define FD_SETSIZE as unsigned. However squid needs to compare it
against signed values on occasion. This casts the squid internal FD limit macro
to ensure its signed.

A better fix may be to audit the code and completely change all FD_SET*
handling codepaths to handle and pass values of a custom signedness
as determined by the OS at build time.

17 years agodebug display error page name not id
Amos Jeffries [Sat, 13 Sep 2008 09:26:52 +0000 (21:26 +1200)] 
debug display error page name not id

17 years agoMerge from trunk
Amos Jeffries [Sat, 13 Sep 2008 09:23:29 +0000 (21:23 +1200)] 
Merge from trunk

17 years agoSet Content-Language and Vary headers on negotiated errors
Amos Jeffries [Sat, 13 Sep 2008 09:18:50 +0000 (21:18 +1200)] 
Set Content-Language and Vary headers on negotiated errors

It's also polite to send the proper Content-Language.
Error page language-negotiation requires us to send the Vary header.

17 years agoUpdates auto-save
Amos Jeffries [Sat, 13 Sep 2008 06:00:54 +0000 (18:00 +1200)] 
Updates auto-save

17 years agoDebug display alterations
Amos Jeffries [Sat, 13 Sep 2008 01:15:56 +0000 (13:15 +1200)] 
Debug display alterations

Enable on/off for all interception errors. Turn on.

Option to silence all NAT if TPROXY in use

re-order code for sightly faster performance on lookups.

17 years agoIndicate FD when interception tests fail
Amos Jeffries [Sat, 13 Sep 2008 01:00:20 +0000 (13:00 +1200)] 
Indicate FD when interception tests fail

17 years agoCleanup client side URL processing cases
Amos Jeffries [Sat, 13 Sep 2008 00:40:14 +0000 (12:40 +1200)] 
Cleanup client side URL processing cases

prepareTransparentURL() was used in a strange way to catch requests received
on a transparent port but with NAT failures. Corrected the cases documentation
and added TPROXT flags to catch transparent failures.

pass transparency flags properly between client and server sides. include
the spoof client IP flag for TPROXY.

17 years agoMerge from trunk
Amos Jeffries [Sat, 13 Sep 2008 00:25:06 +0000 (12:25 +1200)] 
Merge from trunk

17 years agoUpdates auto-save
Amos Jeffries [Sat, 13 Sep 2008 00:00:21 +0000 (12:00 +1200)] 
Updates auto-save

17 years agoBump cache_mem to 256 MB
Amos Jeffries [Fri, 12 Sep 2008 12:43:39 +0000 (00:43 +1200)] 
Bump cache_mem to 256 MB

17 years agoMerge from trunk
Amos Jeffries [Fri, 12 Sep 2008 08:52:35 +0000 (20:52 +1200)] 
Merge from trunk

17 years agoWCCP compile errors
Amos Jeffries [Fri, 12 Sep 2008 08:14:32 +0000 (20:14 +1200)] 
WCCP compile errors

17 years agoAggregate commit after two --local commits:
Alex Rousskov [Fri, 12 Sep 2008 03:57:47 +0000 (21:57 -0600)] 
Aggregate commit after two --local commits:
 - Cleaned up Comm: comm_close, comm_read_cancel, half-closed monitors, leaks.
 - Cleaned up reconfiguration sequence.
Please see individual commit messages for details (bzr permitting).

17 years agoCleaned up reconfiguration sequence.
Alex Rousskov [Fri, 12 Sep 2008 02:59:51 +0000 (20:59 -0600)] 
Cleaned up reconfiguration sequence.

mainReconfigure() used to close and then open various sockets. Since
comm_close is now asynchronous, one cannot close and open in the same
function. Split mainReconfigure into mainReconfigureStart (that starts
the closing process for all relevant sockets) and mainReconfigureFinish
that opens the new sockets.

serverConnectionsClose is only used by main.cc and, hence, can be
static.

Polished comments and added an XXX comment on why SquidShutdown is
broken.

Also removed commCheckHalfClosed event scheduling. A separate cleanup
patch removes the associated half-closed monitoring loop.

17 years agoCleaned up Comm: comm_close, comm_read_cancel, half-closed monitors, leaks.
Alex Rousskov [Fri, 12 Sep 2008 02:58:44 +0000 (20:58 -0600)] 
Cleaned up Comm: comm_close, comm_read_cancel, half-closed monitors, leaks.

1) Comm_close now implements the following API:

  Comm_close does not close the descriptor but initiates the following
  closing sequence:

      1) The descriptor is placed in a "closing" state.
      2) The registered read, write, and accept callbacks (if any) are
         scheduled (in an unspecified order).
      3) The close callbacks are scheduled (in an unspecified order).
      4) A call to the internal descriptor closing handler is
         scheduled.

  Details of the above steps are being documented separately and will
  become a part of Comm API documentation.

  Since all notifications are asynchronous, it is possible for a read or
  write notification that was scheduled before comm_close was called to
  arrive at its destination after comm_close was called.  Such
  notification will arrive with COMM_ERR_CLOSING flag even though that
  flag was not set at the time of the I/O (and the I/O may have been
  successful). CommIoCbParams::syncWithComm is used for this.  The
  credit for this trick goes to Christos Tsantilas.

  Removed fde.flags.closing_ flag as unused.

2) Removed most of the half-closed monitoring code. Old code scheduled
   monitoring reads every main loop iteration, I think. It is possible
   that the assumption was that the handler will be activated and
   cleared once per iteration so that the new read can be scheduled. The
   design could result in conflicts between two monitoring reads and
   possibly between a monitoring read and an active read. There were
   also problems with handling closing descriptors.

   I have removed the loop, AbortChecker, and the associated splay
   tree). When user code marks the descriptor as half-closed, Comm now
   simply schedules a monitoring read callback.  If the user needs to
   check whether the descriptor was marked, Comm checks whether the
   callback is present.  If a user schedules a read when there is
   already a monitoring callback, the monitoring callback is removed.

   Renamed user-facing monitoring functions but left compatibility
   wrappers in place to minimize user code changes, for now.

   It is possible that the whole half-closed monitoring code will be
   eventually deleted. The above changes are meant to preserve the
   intended functionality (but without coredumps) while the decision is
   being made.

3) Removed _SQUID_LINUX_-only code that would avoid addrinfo destruction
   on connect "errors".  Squid seems to be working fine without this
   code. With this code, we leak memory on many connect requests because
   of EINPROGRESS. More work is probably needed to reproduce and fix the
   true cause of the memory corruption observed earlier. Removing the
   workaround will allow us to get more bug reports if the problem is
   still there.

17 years agoCleaned up ConnStateData's closing and destruction.
Alex Rousskov [Fri, 12 Sep 2008 02:52:50 +0000 (20:52 -0600)] 
Cleaned up ConnStateData's closing and destruction.

1) Despite its name and the "if (open) close" use in ConnStateData
destructor, ConnStateData::close() was not closing anything. It was
called from the Comm close handler and from the destructor and would
attempt to immediately delete the ConnStateData object. Protecting code
in deleteThis() may have prevented the actual [double] delete from
happening, but it is difficult to say exactly what was going on when the
close() method was being called from the destructor.

I converted ConnStateData::close to swanSong, which is the standard
AsyncJob cleanup method. As before, the method does not close anything
(which may still be wrong). The swanSong method is never called directly
by the user code. It is called by lower layers just before the job is
destroyed. The updated close handler initiates job destruction by
calling deleteThis().

We may need to add Comm closing code to swanSong. For now, the updated
ConnStateData destructor will warn if ConnStateData forgot to close the
connection. The destructor will also warn if swanSong was not called,
which would mean that the job object is being deleted incorrectly.

2) Polished ClientSocketContext::writeComplete to distinguish
STREAM_UNPLANNED_COMPLETE from STREAM_FAILED closing state. This helps
when looking at stack traces.

3) Added an XXX comment about duplicated code.

4) Documented ClientSocketContext::initiateClose purpose and context.

17 years agoreply and assignment methods are not actually linked
Amos Jeffries [Fri, 12 Sep 2008 01:14:37 +0000 (13:14 +1200)] 
reply and assignment methods are not actually linked

17 years agoCorrect debug messages on error page actions
Amos Jeffries [Thu, 11 Sep 2008 13:00:07 +0000 (01:00 +1200)] 
Correct debug messages on error page actions

17 years agoBug 2454: IPFWInterception getsockname() test is inverted
Amos Jeffries [Thu, 11 Sep 2008 11:19:43 +0000 (23:19 +1200)] 
Bug 2454: IPFWInterception getsockname() test is inverted

17 years agoBug 1628: follow_x_forwarded_for shoudl not cause allow/deny behavior
Amos Jeffries [Thu, 11 Sep 2008 11:14:39 +0000 (23:14 +1200)] 
Bug 1628: follow_x_forwarded_for shoudl not cause allow/deny behavior

clientFollowXForwardedForCheck() needs to always set the
request->indirect_client_addr properly at completion and call
calloutContext->clientAccessCheck(); unconditionally to begin actual
access ACL tests.

Calling clientAccessCheckDone(answer) is equivalent to processing an
http_access line with denial.

17 years agoCleaned up reconfiguration sequence.
Alex Rousskov [Thu, 11 Sep 2008 06:32:57 +0000 (00:32 -0600)] 
Cleaned up reconfiguration sequence.

mainReconfigure() used to close and then open various sockets. Since
comm_close is now asynchronous, one cannot close and open in the same
function. Split mainReconfigure into mainReconfigureStart (that starts
the closing process for all relevant sockets) and mainReconfigureFinish
that opens the new sockets.

serverConnectionsClose is only used by main.cc and, hence, can be static.

Polished comments and added an XXX comment on why SquidShutdown is broken.

Also removed commCheckHalfClosed event scheduling. A separate cleanup patch
removes the associated half-closed monitoring loop.

17 years agoCleaned up Comm: comm_close, comm_read_cancel, half-closed monitors,
Alex Rousskov [Thu, 11 Sep 2008 05:58:32 +0000 (23:58 -0600)] 
Cleaned up Comm: comm_close, comm_read_cancel, half-closed monitors,
leaks.

1) Comm_close now implements the following API:

  Comm_close does not close the descriptor but initiates the following
  closing sequence:

      1) The descriptor is placed in a "closing" state.
      2) The registered read, write, and accept callbacks (if any) are
         scheduled (in an unspecified order).
      3) The close callbacks are scheduled (in an unspecified order).
      4) A call to the internal descriptor closing handler is
         scheduled.

  Details of the above steps are being documented separately and will
  become a part of Comm API documentation.

  Since all notifications are asynchronous, it is possible for a read or
  write notification that was scheduled before comm_close was called to
  arrive at its destination after comm_close was called.  Such
  notification will arrive with COMM_ERR_CLOSING flag even though that
  flag was not set at the time of the I/O (and the I/O may have been
  successful). CommIoCbParams::syncWithComm is used for this.  The
  credit for this trick goes to Christos Tsantilas.

  Removed fde.flags.closing_ flag as unused.

2) Removed most of the half-closed monitoring code. Old code scheduled
   monitoring reads every main loop iteration, I think. It is possible
   that the assumption was that the handler will be activated and
   cleared once per iteration so that the new read can be scheduled. The
   design could result in conflicts between two monitoring reads and
   possibly between a monitoring read and an active read. There were
   also problems with handling closing descriptors.

   I have removed the loop, AbortChecker, and the associated splay
   tree). When user code marks the descriptor as half-closed, Comm now
   simply schedules a monitoring read callback.  If the user needs to
   check whether the descriptor was marked, Comm checks whether the
   callback is present.  If a user schedules a read when there is
   already a monitoring callback, the monitoring callback is removed.

   Renamed user-facing monitoring functions but left compatibility
   wrappers in place to minimize user code changes, for now.

   It is possible that the whole half-closed monitoring code will be
   eventually deleted. The above changes are meant to preserve the
   intended functionality (but without coredumps) while the decision is
   being made.

3) Removed _SQUID_LINUX_-only code that would avoid addrinfo destruction
   on connect "errors".  Squid seems to be working fine without this
   code. With this code, we leak memory on many connect requests because
   of EINPROGRESS. More work is probably needed to reproduce and fix the
   true cause of the memory corruption observed earlier. Removing the
   workaround will allow us to get more bug reports if the problem is
   still there.

17 years agoFix compile errors
Amos Jeffries [Thu, 11 Sep 2008 05:19:13 +0000 (17:19 +1200)] 
Fix compile errors

My braindead alteration to pass the base data and config directories to
the code for use at compile-time backfired with ./configure adding variable
names intended for automake into the autoconf.h file for build.

This approach drops any fancy definition/substitution attempts
and simply adds an compiler flag parameter to every object build.

17 years agoCleaned up ConnStateData's closing and destruction.
Alex Rousskov [Thu, 11 Sep 2008 04:54:34 +0000 (22:54 -0600)] 
Cleaned up ConnStateData's closing and destruction.

1) Despite its name and the "if (open) close" use in ConnStateData destructor,
ConnStateData::close() was not closing anything. It was called from the Comm
close handler and from the destructor and would attempt to immediately delete
the ConnStateData object. Protecting code in deleteThis() may have prevented
the actual [double] delete from happening, but it is difficult to say exactly
what was going on when close() was being called from the destructor.

I converted ConnStateData::close to swanSong, which is the standard AsyncJob
cleanup method. As before, the method does not close anything (which may be
wrong). The swanSong method is never called directly by the user code. It is
called by lower layers just before the job is destroyed.

We may need to add Comm closing code to swanSong. For now, the updated
ConnStateData destructor will warn if ConnStateData forgot to close
the connection. The destructor will also warn if swanSong was not called,
which would mean that the job object is being deleted incorrectly.

2) Polished ClientSocketContext::writeComplete to distinguish
STREAM_UNPLANNED_COMPLETE from STREAM_FAILED closing state. This helps when
looking at stack traces.

3) Added an XXX comment about duplicated code.

4) Documented ClientSocketContext::initiateClose purpose and context.

17 years agoWCCPv2 assignment method overlaps
Amos Jeffries [Wed, 10 Sep 2008 15:47:36 +0000 (03:47 +1200)] 
WCCPv2 assignment method overlaps

17 years agoFriendly WCCPv2 method config
Amos Jeffries [Wed, 10 Sep 2008 15:22:08 +0000 (03:22 +1200)] 
Friendly WCCPv2 method config

17 years agoMerge from trunk
Amos Jeffries [Wed, 10 Sep 2008 15:21:27 +0000 (03:21 +1200)] 
Merge from trunk

17 years agoUpdates auto-save
Amos Jeffries [Wed, 10 Sep 2008 06:00:39 +0000 (18:00 +1200)] 
Updates auto-save

17 years agoTestBed: report major errors logged. on completion
Amos Jeffries [Wed, 10 Sep 2008 01:56:34 +0000 (19:56 -0600)] 
TestBed: report major errors logged. on completion

17 years agoSuppress langpack from non-HEAD branches
Amos Jeffries [Wed, 10 Sep 2008 01:54:58 +0000 (19:54 -0600)] 
Suppress langpack from non-HEAD branches

17 years agoDo not erase the announcement port by assigning an accouncement IP address.
Alex Rousskov [Tue, 9 Sep 2008 17:17:33 +0000 (11:17 -0600)] 
Do not erase the announcement port by assigning an accouncement IP address.

With 11(!) assignment operators (not even counting the implicit ones),
no wonder IPAddress assignment semantics gets lost on developers.

17 years agoImport windows support notes from 2.6
Amos Jeffries [Tue, 9 Sep 2008 12:16:59 +0000 (00:16 +1200)] 
Import windows support notes from 2.6

3.x is more closely aligned regarding windows support for 2.6 than 2.7
Should have been these notes imported earlier.

17 years agoFix compile error on Cygwin
Amos Jeffries [Tue, 9 Sep 2008 11:39:57 +0000 (23:39 +1200)] 
Fix compile error on Cygwin

17 years agoFixed typo: Config.Addrs.udp_outgoing was used for the HTCP incoming address.
Alex Rousskov [Mon, 8 Sep 2008 23:52:06 +0000 (17:52 -0600)] 
Fixed typo: Config.Addrs.udp_outgoing was used for the HTCP incoming address.

17 years agoFixed a typo that printed the following line for every ICMP message sent:
Alex Rousskov [Mon, 8 Sep 2008 23:39:59 +0000 (17:39 -0600)] 
Fixed a typo that printed the following line for every ICMP message sent:
ICMPSquid.cc(125) SendEcho: Wrote 38 of 38 bytes

17 years agoMerge from trunk
Amos Jeffries [Mon, 8 Sep 2008 13:52:18 +0000 (01:52 +1200)] 
Merge from trunk

17 years agoLanguage Updates
Amos Jeffries [Mon, 8 Sep 2008 13:50:29 +0000 (01:50 +1200)] 
Language Updates

17 years agoMerge from trunk
Amos Jeffries [Mon, 8 Sep 2008 13:46:52 +0000 (01:46 +1200)] 
Merge from trunk

17 years agoCleanup fde data members before memset in fde::clean() corrupts their state.
Alex Rousskov [Sat, 6 Sep 2008 05:15:20 +0000 (23:15 -0600)] 
Cleanup fde data members before memset in fde::clean() corrupts their state.
This prevents fde::timeoutHandler and fde::closeHandler memory leaks but there
will probably be more corruption as fde data members are added or changed.

Made fde::clean() private to prevent it from spreading through the code.
Use a new fde object to clean an old one, for now.

17 years agoUse safe functions in session helper
Amos Jeffries [Thu, 4 Sep 2008 12:02:34 +0000 (00:02 +1200)] 
Use safe functions in session helper

Advanced testing reveals that the session helper does not use the
string-safe functions Squid should be using.

This patch corrects that and a bit of formatting fluff in the session
helper.

17 years agoMerge in HTCP changes.
Benno Rice [Thu, 4 Sep 2008 06:26:15 +0000 (16:26 +1000)] 
Merge in HTCP changes.

17 years agoMerge from upstream.
Benno Rice [Thu, 4 Sep 2008 06:25:53 +0000 (16:25 +1000)] 
Merge from upstream.

17 years agoMerge object invalidation changes.
Benno Rice [Thu, 4 Sep 2008 06:05:53 +0000 (16:05 +1000)] 
Merge object invalidation changes.

- Change default invalidation behaviour to match recommended behaviour in RFC.
- Ensure URLs from Location and Content-Location headers are absolute before
  trying to find their associated objects in the store.

17 years agoMerge from upstream.
Benno Rice [Thu, 4 Sep 2008 06:03:40 +0000 (16:03 +1000)] 
Merge from upstream.

17 years agoAuthor: Marin Stavrev <mstavrev@gmail.com>
Amos Jeffries [Thu, 4 Sep 2008 04:33:48 +0000 (16:33 +1200)] 
Author: Marin Stavrev <mstavrev@gmail.com>
Fix bug in ZPH parent/sibling hit marking.

When a peer (parent or sibling) hit was detected the TOS was changed using
the local hit TOS marking (zph_tos_local) value instead of the one
configured in the zph_tos_peer parameter.

17 years agoImport windows support notes from 2.7
Amos Jeffries [Thu, 4 Sep 2008 03:11:27 +0000 (15:11 +1200)] 
Import windows support notes from 2.7

17 years agoDefaults cleanup
Amos Jeffries [Wed, 3 Sep 2008 13:22:55 +0000 (01:22 +1200)] 
Defaults cleanup

17 years agoPreserve TPROXY socket properties across a reset
Amos Jeffries [Wed, 3 Sep 2008 10:39:15 +0000 (22:39 +1200)] 
Preserve TPROXY socket properties across a reset

17 years agoMerge from upstream.
Benno Rice [Wed, 3 Sep 2008 05:31:50 +0000 (15:31 +1000)] 
Merge from upstream.

17 years agoAddress Alex and Amos' comments.
Benno Rice [Wed, 3 Sep 2008 04:42:27 +0000 (14:42 +1000)] 
Address Alex and Amos' comments.

- Also mention the responsibility of the caller to free the result of
  urlMakeAbsolute in the non-NULL case.

17 years agoAddress Alex's comments.
Benno Rice [Wed, 3 Sep 2008 04:40:31 +0000 (14:40 +1000)] 
Address Alex's comments.

- Use bool instead of int for urlIsRelative.
- Document what leads to a NULL return in urlMakeAbsolute.
- Declare variables closer to where they're used.
- Fix indentation.

17 years agoFurther cleanup of urlAbsolute and friends.
Benno Rice [Wed, 3 Sep 2008 01:00:39 +0000 (11:00 +1000)] 
Further cleanup of urlAbsolute and friends.

- Split urlAbsolute into urlIsRelative and urlMakeAbsolute.
- Make urlIsRelative compliant with the RFC as to what defines a relative URL.
- Rework purgeEntriesByHeader to be a little easier on the eyes.

17 years agoFixed.
Benno Rice [Tue, 2 Sep 2008 11:45:48 +0000 (21:45 +1000)] 
Fixed.

17 years agoCheckpoint. Broken.
Benno Rice [Tue, 2 Sep 2008 11:27:02 +0000 (21:27 +1000)] 
Checkpoint.  Broken.

17 years agoUse xmalloc rather than xstrdup.
Benno Rice [Tue, 2 Sep 2008 09:57:18 +0000 (19:57 +1000)] 
Use xmalloc rather than xstrdup.

17 years agoMore checkpoint.
Benno Rice [Mon, 1 Sep 2008 07:25:30 +0000 (17:25 +1000)] 
More checkpoint.

17 years agoCorrect instantiation of HttpHeader object.
Benno Rice [Mon, 1 Sep 2008 06:44:32 +0000 (16:44 +1000)] 
Correct instantiation of HttpHeader object.

17 years agoMore checkpoint.
Benno Rice [Mon, 1 Sep 2008 05:27:59 +0000 (15:27 +1000)] 
More checkpoint.

17 years agoMerge urlAbsolute rewrite.
Benno Rice [Mon, 1 Sep 2008 02:43:32 +0000 (12:43 +1000)] 
Merge urlAbsolute rewrite.

17 years agoCheckpoint HTCP merge.
Benno Rice [Mon, 1 Sep 2008 02:43:20 +0000 (12:43 +1000)] 
Checkpoint HTCP merge.

17 years agoRework urlAbsolute to be a little more streamlined.
Benno Rice [Mon, 1 Sep 2008 02:36:52 +0000 (12:36 +1000)] 
Rework urlAbsolute to be a little more streamlined.

The primary aim of this is to cut down on the number of ways snprintf was
called in the original version.  The idea here is to build the common base
portion of the url using snprintf and then construct the rest using str[n]cpy.
snprintf is still used as the alternative (using only POSIX routines) involves
a much longer run of code that, at least in my estimation, gains us very little
over snprintf.

17 years agoVarious updates
Amos Jeffries [Sun, 31 Aug 2008 15:08:10 +0000 (03:08 +1200)] 
Various updates

 - DNS fail template wording
 - Serbian file missing % options

17 years agoMerge from trunk
Amos Jeffries [Sun, 31 Aug 2008 14:57:32 +0000 (02:57 +1200)] 
Merge from trunk

17 years agoMerge from upstream.
Benno Rice [Fri, 29 Aug 2008 04:40:50 +0000 (14:40 +1000)] 
Merge from upstream.

17 years agoWhitespace fixage.
Benno Rice [Fri, 29 Aug 2008 04:35:42 +0000 (14:35 +1000)] 
Whitespace fixage.

17 years ago- Use safe_free instead of xfree.
Benno Rice [Fri, 29 Aug 2008 01:02:18 +0000 (11:02 +1000)] 
- Use safe_free instead of xfree.
- Minor optimisation.

17 years agoMention actual RFC text here.
Benno Rice [Fri, 29 Aug 2008 00:56:35 +0000 (10:56 +1000)] 
Mention actual RFC text here.

17 years agoMerge from upstream.
Benno Rice [Fri, 29 Aug 2008 00:32:17 +0000 (10:32 +1000)] 
Merge from upstream.

17 years agoLanguages: Dutch Translation
Amos Jeffries [Thu, 28 Aug 2008 12:57:15 +0000 (00:57 +1200)] 
Languages: Dutch Translation

17 years agoLanguages: Dutch Translation
Amos Jeffries [Thu, 28 Aug 2008 12:55:44 +0000 (00:55 +1200)] 
Languages: Dutch Translation

17 years agoUpdates auto-save
Amos Jeffries [Thu, 28 Aug 2008 06:00:24 +0000 (18:00 +1200)] 
Updates auto-save

17 years agoRFC-compliant object invalidation behaviour.
benno@jeamland.net [Thu, 28 Aug 2008 05:12:17 +0000 (15:12 +1000)] 
RFC-compliant object invalidation behaviour.

- Switch the default from not purging if the method is unknown to purging if
  the method is unknown.
- When purging URIs sourced from Location and Content-Location headers, make
  sure the URL is absolute before a) comparing it to see if hosts match and b)
  actually trying to find it in the store.

17 years agoMerge from upstream.
benno@jeamland.net [Thu, 28 Aug 2008 05:05:01 +0000 (15:05 +1000)] 
Merge from upstream.

17 years agoAuthor: Dragutin Cirkovic <painkiller@gromnet.net>
Amos Jeffries [Thu, 28 Aug 2008 01:57:54 +0000 (13:57 +1200)] 
Author: Dragutin Cirkovic <painkiller@gromnet.net>
Bug 2257: Serbian error pages (updates)

Temporary measure to sync the language and close the bug
until it can be ported to .PO.

17 years agoAuthor: Benno Rice <benno@squid-cache.org>
Amos Jeffries [Wed, 27 Aug 2008 13:01:36 +0000 (01:01 +1200)] 
Author: Benno Rice <benno@squid-cache.org>
Respect $(MAKE) in error translation build.

On FreeBSD, make is not GNU make.  GNU make can be installed from ports, but it
is installed as gmake, not make.  This makes it vital that Makefiles that wish
to work on FreeBSD always invoke make with $(MAKE) instead of make.  The recent
error translation stuff did not follow this, and thus the build broke on
FreeBSD.

17 years agoFix build on systems where $(MAKE) != make
Benno Rice [Wed, 27 Aug 2008 05:33:36 +0000 (15:33 +1000)] 
Fix build on systems where $(MAKE) != make

17 years agoDon't change that.
Benno Rice [Wed, 27 Aug 2008 05:30:08 +0000 (15:30 +1000)] 
Don't change that.

17 years agoMerge from upstream, fix build.
Benno Rice [Wed, 27 Aug 2008 05:28:33 +0000 (15:28 +1000)] 
Merge from upstream, fix build.

17 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Mon, 25 Aug 2008 13:40:16 +0000 (01:40 +1200)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
TestBed: Fix layer-01 permutation options

This patch addresses three related issues:
- makes the error messages for those cases more informative
- changes some (echo + exit) sequences into AC_MSG_ERROR() standard autoconf macros
- changes the layer-01 test options so that it doesn't invoke invalid configure options

17 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Mon, 25 Aug 2008 12:30:24 +0000 (00:30 +1200)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Fix bad pattern in squid.conf cleanup

This time it should work by avoiding the Makefile quoting issue entirely:

  grep -v -E '^$'
is in fact equivalent to
  grep .

Hand-comparing the results seems to be ok

17 years agoRemoved code handling K&R-style varargs.
Francesco Chemolli [Sun, 24 Aug 2008 21:38:08 +0000 (23:38 +0200)] 
Removed code handling K&R-style varargs.
It shouldn't be needed in c++-land..

17 years agoUpdates auto-save
Amos Jeffries [Sat, 23 Aug 2008 12:00:25 +0000 (00:00 +1200)] 
Updates auto-save

17 years agoclean(er) squid.conf
Amos Jeffries [Sat, 23 Aug 2008 04:40:50 +0000 (16:40 +1200)] 
clean(er) squid.conf

* Adds squid.conf.documented as the full commented config file
* Prunes all documentation out of the basic squid.conf.default

17 years agoQuieten overly verbose build testing
Amos Jeffries [Sat, 23 Aug 2008 03:43:59 +0000 (15:43 +1200)] 
Quieten overly verbose build testing

* silences script debug per-action details
* silences unneeded configure output down to errors-only
* diverts automake error output into logs

17 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Sat, 23 Aug 2008 03:39:18 +0000 (15:39 +1200)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Fixed typo in squid.h which would prevent leak checking for arrays.

17 years agoSilence overly verbose translation output
Amos Jeffries [Sat, 23 Aug 2008 03:34:21 +0000 (15:34 +1200)] 
Silence overly verbose translation output

17 years agoMerged from trunk
Amos Jeffries [Fri, 22 Aug 2008 13:14:46 +0000 (01:14 +1200)] 
Merged from trunk

17 years agoDrop obsolete Danish files
Amos Jeffries [Fri, 22 Aug 2008 13:07:36 +0000 (01:07 +1200)] 
Drop obsolete Danish files

17 years agoLanguages: Danish Translation
Amos Jeffries [Fri, 22 Aug 2008 13:00:18 +0000 (01:00 +1200)] 
Languages: Danish Translation

17 years agoLanguages: Danish Translation
Amos Jeffries [Fri, 22 Aug 2008 12:46:01 +0000 (00:46 +1200)] 
Languages: Danish Translation

17 years agoDrop obsolete Danish files
Amos Jeffries [Fri, 22 Aug 2008 12:45:05 +0000 (00:45 +1200)] 
Drop obsolete Danish files

17 years agoUpdates auto-save
Amos Jeffries [Fri, 22 Aug 2008 12:00:19 +0000 (00:00 +1200)] 
Updates auto-save

17 years agoBug 2340: make install errors, uudecode, gif-files
Amos Jeffries [Tue, 19 Aug 2008 08:37:32 +0000 (20:37 +1200)] 
Bug 2340: make install errors, uudecode, gif-files

Removes dynamic generation of static files and VCS distributes them
directly.