hno [Fri, 26 Jan 2001 05:54:52 +0000 (05:54 +0000)]
From Kevin Littlejohn:
makes cache_cf.c not try and figure out nobody and nogroup if it's not
going to use them - ie. if squid is being run as a user instead of as root.
It came up because I don't have a nogroup on my machine.
Additions by Henrik Nordstrom:
cache_effective_group now defaults to the GID of cache_effective_user, or
the current user if not started as root. If can always be specified to some
other value if required, but are then subject to the permissions set by the
os (i.e. only root can set the group to a group where he/she is not a member)
wessels [Thu, 25 Jan 2001 05:38:25 +0000 (05:38 +0000)]
cacheCurrentResFileDescrCnt was reporting "Number_FD" rather than
RESERVED_FD. Note the MIB doesn't have a variable for the number
of filedescriptors currently open.
hno [Wed, 10 Jan 2001 04:06:43 +0000 (04:06 +0000)]
Made overloaded dnsserver queues a soft error unless the queue is
completely stuck (3 minutes). This to handle internet-breakdowns more
gracefully when not using the internal DNS client.
hno [Tue, 9 Jan 2001 21:11:14 +0000 (21:11 +0000)]
More adjustments of sfileno/sdirno.
* sdirno type changed back to int, as GCC does not like to use char
for integer operations (array indexing).
* sizes adjusted to
swap_filen:25
swap_dirn:7
This limits the cache size to
files/cache_dir: 2^24 (16777216)
cache_dirs : 2^6-1 (63)
* a couple of asserts added to ensure the above limits.
wessels [Tue, 9 Jan 2001 07:18:43 +0000 (07:18 +0000)]
Use statfs(2) for cachemgr 'storedir' output when statvfs() isn't available.
I created storeDirGetUFSStats() in src/store_dir.c to reduce code
duplication until we have a better place for stuff like that.
wessels [Tue, 9 Jan 2001 06:32:21 +0000 (06:32 +0000)]
assertion failed: forward.c:607: "e->store_status == STORE_PENDING".
In ftpSendPasv() we call fwdComplete() for HEAD requests. I'm
seeing some of these requests get aborted after reading on the
control connection, and before calling fwdComplete(). Since the
entry was aborted, its store_status is already set to STORE_OK
and we get the assertion by calling fwdComplete() on this entry.
hno [Mon, 8 Jan 2001 06:32:04 +0000 (06:32 +0000)]
Major rewrite of proxy authentication to support other schemes than
Basic (auth_rewrite branch on SourceForge).
Contributors:
Andy Doran
Robert Collins
Chemolli Francesco
Henrik Nordstrom
For details about the new API's, see Programmers Guide.
As part of this change everything from auth_modules has been moved to
src/auth/basic/helpers
adrian [Fri, 5 Jan 2001 16:51:32 +0000 (16:51 +0000)]
A modified / unified cbdata and mempool implementation. cbdata
entries are now mempool entries with a cbdata header, saving a
hash operation each time some cbdata is used.
Some documentation is avaliable in the programmers guide.
wessels [Fri, 5 Jan 2001 10:58:18 +0000 (10:58 +0000)]
I think it was a really bad idea to have both 'fs.blksize' and 'fs.kperblk'
as an optimization. Its too hard/ugly to make sure they stay
consistent. This patch removes fs.kperblk.
wessels [Fri, 5 Jan 2001 07:28:22 +0000 (07:28 +0000)]
Argh, the FS blocksize code assumed that blocksize would always be
1K or greater. If the blocksize is 512 bytes, the 'kperblk' variable
would be set to zero, which screws up cache size calculations.
hno [Fri, 5 Jan 2001 04:57:58 +0000 (04:57 +0000)]
From Robert Collins:
I just noticed the new function storeDirGetBlkSize in the latest head merge.
Well it's broken on windows... sys/vfs needs to be included. included is a patch.
wessels [Fri, 5 Jan 2001 02:05:28 +0000 (02:05 +0000)]
A hack to support array types in Squid's Config structure. Mostly this
is to eliminate compiler warnings. The compiler wants us to write
parse_bar(&Config.bar[0]);
rather than
parse_bar(&Config.bar);
wessels [Thu, 4 Jan 2001 11:01:17 +0000 (11:01 +0000)]
proxy_auth usernames with leading whitespace were handled inconsistently.
The authenticator probably allows the name, but the name gets logged
with the leading space encoded, which affects logfile analysis. This
patch strips leading spaces before storing the name and passing it
to an authenticator.
wessels [Thu, 4 Jan 2001 10:42:34 +0000 (10:42 +0000)]
Robert Collins' Cygwin file mode support and ufs writecleanswap bugfix.
Without it users on cygwin with text mode mounts will die badly,
and all cygwin users will not ever see a (CLEAN) status on their
cache_dir's. Why I was getting clean status when I first looked
into this may be due to some of the 'emulation' work done on cygwin
to make UN*X assumptions (ie unlinking open files) work somewhat.
hno [Wed, 3 Jan 2001 05:55:15 +0000 (05:55 +0000)]
The previous commit for extracting icons and parallell builds did not work
very well (always extracted the icons). Now, with some makefile dependency
magic everything should be correct.
wessels [Tue, 2 Jan 2001 08:41:30 +0000 (08:41 +0000)]
swap space accounting used to assume 1K block size. This patch uses
statvfs/statfs to get the actual block size and use it when accounting
for filesystem overheads.
wessels [Tue, 2 Jan 2001 05:03:55 +0000 (05:03 +0000)]
Prevent NULL pointer access in aclMatchAcl(). Some ACL types require
checklist->request_t, but it won't be available in some cases (like
snmp_access). Warn the admin that the ACL can't be checked and that
we're denying it.