hno [Sat, 6 Oct 2001 03:54:03 +0000 (03:54 +0000)]
Be consistent with most other helpers in how to manage spaces. If there
is space characters then assume these are from the password, not the login
name.
hno [Thu, 4 Oct 2001 05:00:07 +0000 (05:00 +0000)]
Further cleanup of quick_abort description. It is wrong to say that
it can be configured to continue downloading when in fact the default
is to continue if there is less than 16 KB remaining.
hno [Thu, 4 Oct 2001 04:56:20 +0000 (04:56 +0000)]
Make the wording in quick_abort less ambigous. Lots of people seem to
think that quick_abort_min actually makes Squid to never continuing
the downloads..
hno [Wed, 3 Oct 2001 15:02:24 +0000 (15:02 +0000)]
Added maintainer mode to not have automake dependencies rebuild automake
files bo default. This is likely to be confusing and causing lots of problems
to the causal user, especially considering the rather strict requirements
we have on automake versions...
Resurrected Duanes old sleep_after_fork patch. This needed or we will
race with ourselves for swap space when restarting helpers. The hello
test is not really sufficient, we must also wait for the child to actually
exec() before forking again. In the event that we are starting many
helpers who uses CPU it is not too unlikely to see a newly started child
to be context switched before exec().
Anyway, default configuration does nothing. To activate this one must
configure sleep_after_fork in squid.conf so it is a quite harmless patch,
and if it helps some people, fine.
Move CACHE_HTTP_PORT and CACHE_ICP_PORT from config.h.in to acconfig.h.
Move config.h.in to config.h to reduce unneeded recompilations after a configure.
Regenerate autotools files.
Bugfix: Vary failed to calculate the variance when going thru a parent.
I obviously never learn to use httpState->orig_request when accessing
client data. Not the first time I have been bitten by httpState->request
being a bogus request missing most of the vital information when using
a peer proxy (only contains the request line, and how to contact the peer).
adrian [Sat, 8 Sep 2001 00:02:44 +0000 (00:02 +0000)]
Remove MEM_STMEM_BUF from the scene, and statically define the stmem
buffer into the mem_node struct. This should cut down on the number
of allocation requests made per HTTP request.
Merge from ntlm work. Fixes: reconfiguring when ntlm authentication in progress, no longer resets all ntlm auth progress for user foo when user foo has an error on one connection
robertc [Fri, 31 Aug 2001 17:19:04 +0000 (17:19 +0000)]
Merged in the squid-amake branch from sourceforge.
Due to the different policy regarding the autotool generated files, the Makefile.in files
for cvs.squid-cache.org have been updated in place, and the extra autotool support files
- such as depcomp - added. These should be filtered from sourceforge.
Also of particular note:
* new make targets dist-all - creates two distribution tarballs, one .tar.gz, one .tar.bz2.
These do not include all the source files - things like the test suite are deliberately
left out.
* distcheck - creates a .tar.gz dist tarball and confirms that it builds with the default
options.
* the module files - lru/heap/ufs/basic etc are now libraries - liblru.a etc.
* The module files are build from the directory above, ie to build just liblru cd to
src/repl, and type make liblru.a. The benefit to this is that parallelised makes get
better efficiency, as they don't have to serialise each stub node.
hno [Thu, 30 Aug 2001 15:51:40 +0000 (15:51 +0000)]
BUGFIX: potential coredump condition on snmpwalk of empty tables.
If the indexing function did not return a new OID, make sure the
parsing function is forgotten as well.
robertc [Wed, 29 Aug 2001 20:57:33 +0000 (20:57 +0000)]
latest rollup from ntlm.
Includes:
* bugfix for ntlm helpers getting stuck
* bugfix for "Direction" error
* NTLMSSP helper no longer hangs
* some minor authentication code tidyups
* ipcCreate returns PID.
* Stateful helpers show helper PID in stats page.
* Andrew Doran has updated all his email address's. Hi Andrew!
hno [Mon, 27 Aug 2001 04:22:43 +0000 (04:22 +0000)]
BUGFIX: Plug a large SSL memory leak. SSL connections was never freed.
Note: This is done in a quite crude manner, and there most likely is
better ways of doing this. Have investigated the use of a close handler
but it won't fit well with lingering closes.
hno [Fri, 24 Aug 2001 21:02:43 +0000 (21:02 +0000)]
BUGFIX: Certain non-fatal errors could case a client connection to hang
until connection timeout. For example after the following error:
clientReadRequest: FD 17: no data to process
wessels [Tue, 21 Aug 2001 11:54:13 +0000 (11:54 +0000)]
Bugzilla #215: NULL pointer access for proxy requests in accel-only mode
This patch fixes the bug by checking for NULL in aclIsProxyAuth().
If access is denied due to receipt of a proxy request with
'httpd_accel_with_proxy off' then AclMatchedName is NULL.
clientAccessCheckDone() calls aclIsProxyAuth() with the NULL pointer,
so the check could go into either function. It was cleaner to put
it in aclIsProxyAuth().
hno [Thu, 16 Aug 2001 06:16:15 +0000 (06:16 +0000)]
WIN32/Cygwin fixes by Guido
- Better GetOSVersion function, more squid "aware", added support for
Windows XP and future Windows versions.
- Added trap in WIN32_Subsystem_Init() for unknown or unsupported (WIN32s)
Windows version.
- Fixed compile warning in comm.c
- Changed exit() WIN32 hook, now less intrusive
adrian [Sun, 12 Aug 2001 16:20:41 +0000 (16:20 +0000)]
Add a (very evil) async IO framework. It doesn't do much - just get
the calls in there. The next (few) commits will be the async code.
Yes, yes, I know it should be "Generic", but I'm trying to get COSS
to "user testing" state, so this is the best 'comprimise'.
For now, COSS will use the libaio routines (or the sync stuff in
disk.c - the calling API is the same so wrapping stuff in an #ifdef
will be quite easy) which are available on Solaris, FreeBSD
and possibly Linux.
adrian [Sun, 12 Aug 2001 00:27:20 +0000 (00:27 +0000)]
The four-liner below alters fatal() so that fatal errors cause squid
to dump core rather than exit more-or-less-cleanly (of course, the actual
outcome depends on the user's ulimit settings).
Submitted by: Chemolli Francesco <ChemolliF@GruppoCredit.it>
adrian [Fri, 3 Aug 2001 21:12:57 +0000 (21:12 +0000)]
Latest NTLM snapshot code, courtesy of kinkie and robert.
<quote>
It's been a while coming... but Kinkie and I now have
probably-production ready NTLM code. It's gone past 1.5 million requests
without failing. The attached patch is a rollup of many minor fixes and
some enhancements:
* Digest: fix crash on shutdown
* ACL: New type max_user_ip to replace authenticate_ip_is_strict.
* ACL: Authenication refactored, to separate authentication and
authorisation as well as allow 'lazy auth' where authentication is
triggered by the presence of an authentication using ACL, not
necessarily "proxy_auth". I.e. using max_user_ip will trigger
authentication even if no proxy_auth acl's are defined.
* Authentication: API for schemes extended to allow handling duplicate
authentication on a authenticated _connection_ (yes NTLM again).
* Authentication: Authentication API extended to allow multiple IP's per
auth_user, and to allow authentication as an orthogonal process to
authorisation.
* NTLM: many minor races fixed. Should prevent the "Direction before
..." errors and the "Duplicate auth" + login popup bug.
* Delay pools: Support authentication (Non-NTLM)in delay pools acl's.
Beginnings of NTLM support for same.
* Helpers: Stateful helper bugfixes to prevent negative deferred helper
counts (which prevented ntlm challenge refreshing).
* configure: detect two more headers for NTLM compilation on some
platforms.
Limit memory used for select() statistics. It was allocating space for
up to SQUID_MAXFD active filedescriptors per select(), but we are
only interested in a much smaller range.
This statistics could use quite a bit of memory when SQUID_MAXFD is large
(think I measured something like 8MB for 16K filedescriptors)
Fix a 0-byte read condition while reading request bodies. We need to
stop reading when the buffer is full, and continue again when data
have been used. Thanks to Vladimir B. Savkin for finding this issue.
Also some cleanups in httpRequestFree()
* Permanently removed some old suspicious code Duane had found and commented out.
* Added a new comment at the same place, asking on the validity of the few next
lines. Looks like we are looking a bit too deap into the store entry
there..