wessels [Wed, 27 Jun 2001 03:02:05 +0000 (03:02 +0000)]
The recent patch for Bugzilla #172 doesn't compile on HEAD, so I've
disabled it. Looks like we can't access the RFC931 string in
peerAllowedToUse() until we make some changes to data structures.
wessels [Tue, 26 Jun 2001 23:17:53 +0000 (23:17 +0000)]
Bugzilla #172: Ident Based ACLs fail when applied to cache_peer_access
The aclCheck_t structure passed for cache_peer_access didn't copy
the user_ident string from the request_t structure. Further evidence
that the multiple locations for ident/proxyauth username strings needs
to be fixed and probably rewritten.
wessels [Tue, 26 Jun 2001 22:44:24 +0000 (22:44 +0000)]
Bugzilla #165: "Store Mem Buffer" leaks badly
This fixes some excessive memory usage problems (for uncachable
responses only?) when 'maximum_object_size_in_memory' is not set
to a small value. It was probably a coding bug from long ago
that didn't occur much because 'maximum_object_size_in_memory'
used to be hard-coded to a small value (8KB).
wessels [Wed, 30 May 2001 23:40:26 +0000 (23:40 +0000)]
Oops, this should have been committed to head first and the 2.4 branch
second.
I am having some infrequent coredumps on DEC Alphas. Somehow, shared
memory pointers are gaining a high bit set, almost as though due to
an addition/subtraction overflow. One potential problem is that I
was storing the value of long pointer subtraction into a 32-bit integer.
I changed those integer offsets to off_t. However, the offset value
in the inter-process messages remains 32-bits to keep the message size
small and predictable.
hno [Wed, 23 May 2001 02:31:34 +0000 (02:31 +0000)]
Bugzilla #160:
> My problem is that the referer_log file is still at 0 bytes. This cannot be
> right. I have created a site with a clickthrough possibility, and it isn't
> logging the http_referer.
>
> Has anybody had simular experiences? Or can point me in the right direction?
>
I look into that. The variable holding the logfile struct just had no value
assigned. Here is a patch:
hno [Mon, 21 May 2001 10:50:57 +0000 (10:50 +0000)]
auth_rewrite update from Robert Collins
* src/authenticate.c
(authenticateValidateUser): Check for user scheme data.
Increase the debug level for "validated".
(authenticateFixHeader): Add a hint for internal responses versus
proxied responses. Use it to prevent erroneous challenges when external
sites request authentication.
* src/client_side.c
(clientRedirectDone): Reference lock any auth use when creating a
new request.
(clientBuildReplyHeader): Hint to authenticateFixHeader that this is
a proxied response.
* src/errorpage.c
(errorAppendEntry): Hint to authenticateFixHeader that this is an
internal response.
* src/helper.c
(helperStatefulSubmit): Handle broken allocators that don't clear memory.
Better descriptive comments.
Remove an redundant cbdata check.
* src/protos.h
(authenticateFixHeader): New prototype.
hno [Wed, 16 May 2001 13:47:00 +0000 (13:47 +0000)]
Documented a memory leak on SNMP initialization. Quite a large reorganisation
is requred to fix it, and it is only a small fixed amount so this have to
wait until later..
hno [Sun, 6 May 2001 20:25:21 +0000 (20:25 +0000)]
[win32.c was forgotten in the large commit]
This patch allows squid to read the DNS servers from the registry. Guido
has reintegrated the older NT-port code to do this, and upgraded it to
fit in squid more smoothly.
hno [Sat, 5 May 2001 23:49:53 +0000 (23:49 +0000)]
This patch allows squid to read the DNS servers from the registry. Guido
has reintegrated the older NT-port code to do this, and upgraded it to
fit in squid more smoothly.
Oops. My cleanup of "httpd_accel_port virtual" broke IP-Filter support for
some requests. Code was missing the important brakets around a else statement..
More LDAP options
-R Do not follow referrals
-a ... specifies when to dereference aliases
Also be more tolerant for minor search failures, accepting partial results.
Microsoft Active Directory returns partial results due to a referral in
the user definition.
More documentation will be written later, explaining how to use the
searchfilter and scope, with examples on how to use this to log in
to Microsoft active directory.
When an URL is found to Vary a dummy placeholder object is created
to hold the Vary header information, and the store key algorithm is
changed to include the indicated headers.
Again, fix bandwidth spikes seen when the origin server did not process
a range request.
Ideally the whole "we_do_ranges" check should only be done once, and replies
should only be range processed if this is true. Currently we have the check
in two, maybe even three places is seems.
adrian [Wed, 4 Apr 2001 02:22:10 +0000 (02:22 +0000)]
Make the location of the diskd program a configurable parameter.
(YAY!).
This is configurable through the "diskd_program" entry in the squid
config file. It defaults to $(libexecdir). This means that
./configure --prefix="" --with-libexec-dir="" should now work properly.
wessels [Thu, 29 Mar 2001 06:24:18 +0000 (06:24 +0000)]
When squid is running in daemon mode, this patch causes the parent
squid to exit if the child squid process was killed with SIGKILL.
Previously the parent would spawn a new child process, making it
difficult to stop squid. We may want to add other signals to
the list as well.
wessels [Wed, 28 Mar 2001 21:45:40 +0000 (21:45 +0000)]
Sanity checking in storeDirGetBlkSize. Currently callers don't
check for errors or abnormal values. Make sure fs.blksize is never
zero upon returning from this function. Use 2048 as a default
block size.
adrian [Mon, 26 Mar 2001 01:08:25 +0000 (01:08 +0000)]
Fix a parameter which should be double instead of int.
Its possible that CPU use could skyrocket if the compiler doesn't
do a friendly int -> double typecast for us, which it doesn't have
to..
Submitted by: Jürgen Sandner <juergen.sandner@baypol.bayern.de>
hno [Thu, 22 Mar 2001 06:41:10 +0000 (06:41 +0000)]
21 mar 2001 Robert Collins
* auth/ntlm/helpers/NTLMSSP/ntlm_auth.c: Send error details within
the squid-helper protocol (Kinkie)
* auth/basic/auth_basic.c: Cleanup multiple requests when
credentials recieved (Rob)
* acl.c: Use the connection credentials when testing for
authentication status. (This fixes a recently introduced bug with
persistent NTLM connections). (Rob)
hno [Sat, 17 Mar 2001 20:31:16 +0000 (20:31 +0000)]
From Robert Collins:
I've implemented pthread_cond* in cygwin (available in the 1.3.0
code - CVS HEAD branch), so the native win32 threaded code is no longer
needed. The in-cygwin implementation runs the existing aufs code nearly
unaltered. The attached patch brings in the same file mode details
already implemented in ufs for cygwin (O_BINARY), not unlinking open
files... and #if tests the scheduler settings which aren't present on
cygwin yet.
wessels [Wed, 14 Mar 2001 02:11:25 +0000 (02:11 +0000)]
sd->log.open() and sd->log.close() are NULL for the "null" storage
system. The code was assuming that these functions are defined
for all storage types. That caused coredumps upon reconfigure. Now
only call those functions if non-NULL.
hno [Mon, 12 Mar 2001 04:55:20 +0000 (04:55 +0000)]
From Robert Collins:
The integer types patch introduced a problem with squid.h including
sys/types.h before defining FD_SETSIZE. This may cause problems on
IRIX, NETBSD, and definately does on cygwin ...
attached is a patch against HEAD to alter the location that the
squid_types.h is pulled in. I've done a make clean with this and it
was fine.
The changes to md5.c & h are because it depends on known int types.
hno [Sat, 10 Mar 2001 07:55:35 +0000 (07:55 +0000)]
auth_rewrite update:
Improved NTLMSSP debugging & reliability
Clearer acl.c logic, catches boundary cases.
"Fail open" configure option for NTLM to degrade gracefully
Should fix the compile issues on Solaris 8
hno [Thu, 1 Mar 2001 10:27:54 +0000 (10:27 +0000)]
From Costas Tavernarakis:
The following resolves squid 2.4 bug that on bugzilla is #79,
"NULL pointer access in storeDirSwapLog while writing icons".
ANSI C defines that integers in bitfields declared as 'int' are
either signed or unsigned, depending on the implementation.
gcc (unless -funsigned-bitfields is used) uses signed integers by
default. Sun cc uses unsinged.
Although not explicitly defined, squid expects the two bitfields
at lines 1324-1325 of structs.h to always be declared as signed,
which is not generally true.
Any portable program should always specify whether bitfield integer
types are signed or not.