]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
27 years agoreport # on-disk objects
wessels [Sat, 23 May 1998 05:42:58 +0000 (05:42 +0000)] 
report # on-disk objects

27 years agogenerate a coredump for running out of swap file numbers
wessels [Sat, 23 May 1998 05:42:12 +0000 (05:42 +0000)] 
generate a coredump for running out of swap file numbers

27 years agoupdate
wessels [Sat, 23 May 1998 05:41:18 +0000 (05:41 +0000)] 
update

27 years agofix filemap warning
wessels [Sat, 23 May 1998 05:28:37 +0000 (05:28 +0000)] 
fix filemap warning

27 years agoPrint Mean object size in 'info' page
wessels [Sat, 23 May 1998 05:14:20 +0000 (05:14 +0000)] 
Print Mean object size in 'info' page

27 years agocompiler
wessels [Sat, 23 May 1998 05:13:44 +0000 (05:13 +0000)] 
compiler

27 years agodont push persistent connections if were low on FDs
wessels [Sat, 23 May 1998 05:07:39 +0000 (05:07 +0000)] 
dont push persistent connections if were low on FDs

27 years agoAdded:
rousskov [Sat, 23 May 1998 04:52:40 +0000 (04:52 +0000)] 
Added:
- Fixed an assertion coredump in statHistCopy from
  reconfiguring with different #peers in squid.conf
- Disable persistent connections for client connections
  from broken Netscape User-Agent, version 3.* (Stewart Forster)

27 years agocomments
wessels [Sat, 23 May 1998 04:38:42 +0000 (04:38 +0000)] 
comments

27 years ago- do not disable client-side pconns for Netscape User-Agent if it is a proxy
rousskov [Sat, 23 May 1998 04:29:59 +0000 (04:29 +0000)] 
- do not disable client-side pconns for Netscape User-Agent if it is a proxy
  connection (not a client connection)

27 years agoFrom: Henrik Nordstrom <hno@hem.passagen.se>
wessels [Sat, 23 May 1998 03:11:47 +0000 (03:11 +0000)] 
From:    Henrik Nordstrom <hno@hem.passagen.se>
==============================================================================
Here is a in large parts reworked patch for async I/O. This replaces all
of my previous async-io patch (which was messy and broken).

    * The read offset was not preserved, corrupting deferred hits on
      pipelined connections.
    * Main <-> I/O thread communication is done using a single request
      pointer, optionally protected by a mutex.
    * CPU spin situation solved in two possible ways: Either by
      properly protecting the condition variable using a mutex, or by
      increasing the timeout-time on each timeout instead of relying on
      squid_curtime.
    * Use a 50 msec select timeout for ASYNC_IO to keep things flowing
      nicely.
    * Check for completed threads when the request queue grows.
      Completed requests are put on a FIFO queue until processed from the
      main loop.  This is done to more quickly reuse of finished
      threads.
    * Fixed a silly bug in my last version of this patch. No idea how
      the last patch could pass my tests...
    * Avoid pointer aliasing. Some compilers/optimisations have trouble
      with this (the old code was probably safe, but..).
    * Some minor code cleanups.
    * This patch is not messed up ;-)
    * Removed compiler warnings
    * No more SIGCONT signal hack or cross-level hints. This was a bad
      move both on performance and code design.
    * Mutex signalling is optional (-DAIO_PROPER_MUTEX). Using a
      volatile pointer should be safe on most/all platforms.

This patch is quite heavily tested, and seems to perform well.

I still haven't found the cause to another async-io problem. When
async-io is enabled Squid only caches about 1/2 of the requests in my
tests. Without async-io everything gets cached as expected. I have
verified that this problem in present in a unpatched b20-1 and is not
caused by this patch or any of the other 1.2b20-1 changes I have made.

27 years agoadding
wessels [Sat, 23 May 1998 03:05:47 +0000 (03:05 +0000)] 
adding

27 years ago- httpMsgIsPersistent() is now checks for both "Mozilla" and "Netscape"
rousskov [Fri, 22 May 1998 11:19:09 +0000 (11:19 +0000)] 
- httpMsgIsPersistent() is now checks for both "Mozilla" and "Netscape"
  agents.

27 years ago- check for user-agent = Mozilla/3.* (i.e., netscape-3.*) and disable pconns
rousskov [Fri, 22 May 1998 11:02:38 +0000 (11:02 +0000)] 
- check for user-agent = Mozilla/3.* (i.e., netscape-3.*) and disable pconns
  for that message.

27 years ago - added "under construction" label for "binary request headers" entry.
rousskov [Fri, 22 May 1998 09:01:40 +0000 (09:01 +0000)] 
 - added "under construction" label for "binary request headers" entry.
   there are still a few places and patches that need attention.

27 years ago- increased CacheDigestVer.
rousskov [Fri, 22 May 1998 08:52:21 +0000 (08:52 +0000)] 
- increased CacheDigestVer.

27 years agoupdate
wessels [Fri, 22 May 1998 08:29:06 +0000 (08:29 +0000)] 
update

27 years agoHandle "squid-internal-static" URLs for any host
wessels [Fri, 22 May 1998 05:14:05 +0000 (05:14 +0000)] 
Handle "squid-internal-static" URLs for any host

27 years agomising msec->sec conversion
wessels [Fri, 22 May 1998 04:39:00 +0000 (04:39 +0000)] 
mising msec->sec conversion

27 years agounits on RTTs
wessels [Fri, 22 May 1998 04:32:17 +0000 (04:32 +0000)] 
units on RTTs

27 years ago - Changed storeGetMemSpace(). Only purge down to the HIGH
wessels [Fri, 22 May 1998 04:23:59 +0000 (04:23 +0000)] 
    - Changed storeGetMemSpace().  Only purge down to the HIGH
          water mark; move locked entries to the head of the inmem
          list.

27 years agoupdate
wessels [Fri, 22 May 1998 04:01:35 +0000 (04:01 +0000)] 
update

27 years agoSSL proxy requests need full HTTP request headers. httpBuildRequest
wessels [Fri, 22 May 1998 04:01:07 +0000 (04:01 +0000)] 
SSL proxy requests need full HTTP request headers.  httpBuildRequest
junk must now be public instead of static to http.c

27 years agoremoved EBIT gunk
wessels [Thu, 21 May 1998 13:05:38 +0000 (13:05 +0000)] 
removed EBIT gunk

27 years agoforce peer lookup at start time
wessels [Thu, 21 May 1998 12:41:55 +0000 (12:41 +0000)] 
force peer lookup at start time

27 years agoremove wierd QUICK_ABORT_100PCT 128 stuff
wessels [Thu, 21 May 1998 10:01:01 +0000 (10:01 +0000)] 
remove wierd QUICK_ABORT_100PCT 128 stuff

27 years agoChanged refresh_t->pct from an int to a double
wessels [Thu, 21 May 1998 09:59:34 +0000 (09:59 +0000)] 
Changed refresh_t->pct from an int to a double

27 years agoremove const from netdbClosestParent()
wessels [Thu, 21 May 1998 09:48:19 +0000 (09:48 +0000)] 
remove const from netdbClosestParent()

27 years agoskip peerRefreshDNS if there is no recent traffic
wessels [Thu, 21 May 1998 09:22:43 +0000 (09:22 +0000)] 
skip peerRefreshDNS if there is no recent traffic

27 years ago- added strListIsSubstr()
rousskov [Thu, 21 May 1998 06:59:07 +0000 (06:59 +0000)] 
- added strListIsSubstr()

27 years ago- fixed loop detection code; we must use strstr instead of strcmp when
rousskov [Thu, 21 May 1998 06:57:35 +0000 (06:57 +0000)] 
- fixed loop detection code; we must use strstr instead of strcmp when
  searching for ThisCache in a Via headers.

27 years agoPrevent forwarding loops from netdbClosestParent()
wessels [Thu, 21 May 1998 06:46:16 +0000 (06:46 +0000)] 
Prevent forwarding loops from netdbClosestParent()

27 years agoadded X-Squid-Error: reply header
wessels [Thu, 21 May 1998 06:01:28 +0000 (06:01 +0000)] 
added X-Squid-Error: reply header

27 years agoDon't cache replies with Vary headers
wessels [Thu, 21 May 1998 05:35:01 +0000 (05:35 +0000)] 
Don't cache replies with Vary headers

27 years agoreplaced fde->flags EBIT stuff with int:1 list
wessels [Thu, 21 May 1998 04:39:44 +0000 (04:39 +0000)] 
replaced fde->flags EBIT stuff with int:1 list

27 years agoChanged struct _fde->flags to int:1 list.
wessels [Thu, 21 May 1998 04:07:08 +0000 (04:07 +0000)] 
Changed struct _fde->flags to int:1 list.

27 years agoFrom: Stewart Forster <slf@connect.com.au>
wessels [Thu, 21 May 1998 03:47:44 +0000 (03:47 +0000)] 
From:    Stewart Forster <slf@connect.com.au>
        This is the final patch that I decided upon that avoids extra system
calls (ie. faster).

        It adds two extra flags, FD_NOLINGER, and FD_NONBLOCKING to allow
for easy testing of these conditions when deciding what to do in comm_close().
It also allows for easy changing of the doaioclose test in the future when
it's decided what actually takes precedence.

27 years agoremove debug
wessels [Thu, 21 May 1998 03:07:30 +0000 (03:07 +0000)] 
remove debug

27 years agoset HTTP request version
wessels [Thu, 21 May 1998 03:06:23 +0000 (03:06 +0000)] 
set HTTP request version

27 years agoFixed matchDomainName array bounds bug -- potentially checking before
wessels [Thu, 21 May 1998 02:46:50 +0000 (02:46 +0000)] 
Fixed matchDomainName array bounds bug -- potentially checking before
the beginning of a string.

27 years agoconfigurable closing of potentially half-closed sockets
wessels [Tue, 19 May 1998 03:14:30 +0000 (03:14 +0000)] 
configurable closing of potentially half-closed sockets

27 years agoxmalloc debug hash bucket macro
wessels [Sat, 16 May 1998 02:50:25 +0000 (02:50 +0000)] 
xmalloc debug hash bucket macro

27 years agohenrik wants more complaints about creating directories
wessels [Sat, 16 May 1998 02:31:41 +0000 (02:31 +0000)] 
henrik wants more complaints about creating directories

27 years agoHenrik:
wessels [Sat, 16 May 1998 02:02:10 +0000 (02:02 +0000)] 
Henrik:
lseek/don't close file for PUT requests

27 years agoHenrik:
wessels [Sat, 16 May 1998 01:55:59 +0000 (01:55 +0000)] 
Henrik:
fix storeClientCopy copy-from-memory condition.   Require that copy_offset
be between LO and HI, not just that LO < HI.

27 years agoHenrik:
wessels [Sat, 16 May 1998 01:15:03 +0000 (01:15 +0000)] 
Henrik:
be verbose when refusing new HTTP connections

27 years agoStew Forster:
wessels [Sat, 16 May 1998 00:57:42 +0000 (00:57 +0000)] 
Stew Forster:
Use close() instead of aioClose() if the socket as NONBLOCK set

27 years agodebugging for objects with open swapout files
wessels [Fri, 15 May 1998 23:16:21 +0000 (23:16 +0000)] 
debugging for objects with open swapout files

27 years ago- Don't need eventDelete() calls because event handlers now use cbdata
wessels [Fri, 15 May 1998 22:58:33 +0000 (22:58 +0000)] 
- Don't need eventDelete() calls because event handlers now use cbdata
- Don't call netdbExchangeStart for MULTICAST peers
- Try to get average RTT's for multicast peers
- Need to cbdataAdd(psstate) for multicast counting

27 years agoMillisecond timing patch for events, comm_select/comm_poll, etc.
wessels [Fri, 15 May 1998 21:16:19 +0000 (21:16 +0000)] 
Millisecond timing patch for events, comm_select/comm_poll, etc.
peerPingTimeout() now uses double the average peer RTT

27 years agoFUM errors. we're accessing 'sc' after it gets freed by a callback.
wessels [Fri, 15 May 1998 20:35:48 +0000 (20:35 +0000)] 
FUM errors.  we're accessing 'sc' after it gets freed by a callback.
Wrapping storeClientCopy2() with cbdataLock/Unlock should prevent
it from being freed until the end of this function.
Gross solution.

27 years agoAdded weights to event structure. We need to run ALL
wessels [Fri, 15 May 1998 02:47:59 +0000 (02:47 +0000)] 
Added weights to event structure.  We need to run ALL
"lightweight" events like peerPingTimeout and storeClientCopyEvent
instead of just one event per call from the select loop

27 years agoTransitioning Cache Digests from "experimental" to fundamental.
wessels [Thu, 14 May 1998 22:33:47 +0000 (22:33 +0000)] 
Transitioning Cache Digests from "experimental" to fundamental.
Removed a lot of stats collection, espeically large histograms.
Made peerDigestInit() called from an event, instead of being
called directly -- this avoids some recursion.
The selection algorithm is still kind of hard coded as follows:
cache digests
netdb (if CD's miss)
ICP (if netdb has no RTT data)

27 years agotype bug
wessels [Thu, 14 May 1998 05:09:47 +0000 (05:09 +0000)] 
type bug

27 years agoMust memcpy() tmp_keys to ensure alignment!
wessels [Thu, 14 May 1998 04:59:44 +0000 (04:59 +0000)] 
Must memcpy() tmp_keys to ensure alignment!

27 years agoupdate
wessels [Thu, 14 May 1998 03:50:15 +0000 (03:50 +0000)] 
update

27 years agoRewrite hash_remove_link() to use pointer-to-pointer
wessels [Thu, 14 May 1998 03:48:26 +0000 (03:48 +0000)] 
Rewrite hash_remove_link() to use pointer-to-pointer

27 years agostoreSwapInFileOpened now releases failed objects
wessels [Thu, 14 May 1998 03:30:14 +0000 (03:30 +0000)] 
storeSwapInFileOpened now releases failed objects

27 years agocleaned up storeSwapInFileOpened, especially for failure cases.
wessels [Thu, 14 May 1998 03:29:37 +0000 (03:29 +0000)] 
cleaned up storeSwapInFileOpened, especially for failure cases.
Call storeReleaseRequest() directly from here to be sure the
bad object gets thrown out.

27 years agocleanup -- add ^extern
wessels [Thu, 14 May 1998 03:28:08 +0000 (03:28 +0000)] 
cleanup -- add ^extern

27 years agoChanged ipcache_gethostbyname() to return NULL if i->addrs.count == 0;
wessels [Thu, 14 May 1998 03:25:54 +0000 (03:25 +0000)] 
Changed ipcache_gethostbyname() to return NULL if i->addrs.count == 0;

27 years agochange hash_remove_link() to return void and fatal() upon error.
wessels [Thu, 14 May 1998 03:24:46 +0000 (03:24 +0000)] 
change hash_remove_link() to return void and fatal() upon error.

27 years agoFMR fix
wessels [Thu, 14 May 1998 03:20:42 +0000 (03:20 +0000)] 
FMR fix

27 years agoip_access_type unused
wessels [Thu, 14 May 1998 03:20:02 +0000 (03:20 +0000)] 
ip_access_type unused

27 years agohash_link->item unused
wessels [Thu, 14 May 1998 03:19:44 +0000 (03:19 +0000)] 
hash_link->item unused

27 years agoFixed byte-order bugs in cacheDigestHashKey.
wessels [Thu, 14 May 1998 03:16:30 +0000 (03:16 +0000)] 
Fixed byte-order bugs in cacheDigestHashKey.

27 years ago- set INIT flag earlier in peerDigestInit() to avoid a loop through
rousskov [Wed, 13 May 1998 04:07:36 +0000 (04:07 +0000)] 
- set INIT flag earlier in peerDigestInit() to avoid a loop through
  peerDigestValidate() -> peerSelect() -> pperDigestLookup() -> peerDigestInit()

27 years agoeventAdd cleanups
wessels [Wed, 13 May 1998 02:29:24 +0000 (02:29 +0000)] 
eventAdd cleanups

27 years agoeventAdd, eventRun, et al. now check cbdata before making a callback.
wessels [Wed, 13 May 1998 02:16:32 +0000 (02:16 +0000)] 
eventAdd, eventRun, et al. now check cbdata before making a callback.
If the 'arg' pointer becomes invalid, then the event is NOT run.
Events with NULL 'arg's are always run.

27 years agoremoved extra cbdataLock/Unlock calls since event functions now do
wessels [Wed, 13 May 1998 02:14:05 +0000 (02:14 +0000)] 
removed extra cbdataLock/Unlock calls since event functions now do
that themselves

27 years agoadding
wessels [Wed, 13 May 1998 02:01:57 +0000 (02:01 +0000)] 
adding

27 years agohide potential coredump warnings with higher debugs
wessels [Tue, 12 May 1998 10:11:16 +0000 (10:11 +0000)] 
hide potential coredump warnings with higher debugs

27 years agoexperimental comm_lingering_close()
wessels [Tue, 12 May 1998 03:34:09 +0000 (03:34 +0000)] 
experimental comm_lingering_close()

27 years ago- Enabled request->cache_control and removed REQ_CC_ONLY_IF_CACHED
rousskov [Tue, 12 May 1998 02:56:06 +0000 (02:56 +0000)] 
- Enabled request->cache_control and removed REQ_CC_ONLY_IF_CACHED
- Fixed memory leak for request->cache_control field

27 years agodon't exchange too-large RTTs (it broke inet_htons()).
wessels [Tue, 12 May 1998 02:35:32 +0000 (02:35 +0000)] 
don't exchange too-large RTTs (it broke inet_htons()).
Limit at 60 seconds

27 years agoCan't rename open files on windows.
wessels [Tue, 12 May 1998 02:06:19 +0000 (02:06 +0000)] 
Can't rename open files on windows.

27 years ago - Added binary http headers to requests
rousskov [Tue, 12 May 1998 00:44:23 +0000 (00:44 +0000)] 
    - Added binary http headers to requests
        - request_t objects are now created and destroyed in a consistent way
        - Fixed cache control printf bug
        - Added a lot of new http header ids
        - Improved Connection: header handling; now both Connection and
          Proxy-Connection headers are checked
        - Connection request header is now handled correctly regardless
          of its position and the number of entries
        - Better handling of persistent connection "clues" in HTTP headers
        - Removed handling of "length=" directive in IMS headers;
          the directive is not in the HTTP/1.1 standard;
          standing by for objections
        - allowed/denied headers are now checked using bit masks instead of
          strcmp loops
        - removed Uri: from allowed headers; Uri is deprecated in RFC 2068
        - removed processing of Request-Range header (no in specs?)

note: binary headers for requests are not completed:
request_t still keeps and ascii image of the headers

27 years agouse storePurgeMem instead of storeRelease in storeGetMemSpace
wessels [Sun, 10 May 1998 20:35:51 +0000 (20:35 +0000)] 
use storePurgeMem instead of storeRelease in storeGetMemSpace

27 years agohandle STORE_ABORTED in netdbExchangeHandleReply
wessels [Sun, 10 May 1998 09:03:12 +0000 (09:03 +0000)] 
handle STORE_ABORTED in netdbExchangeHandleReply

27 years agoupdate
wessels [Sun, 10 May 1998 07:55:38 +0000 (07:55 +0000)] 
update

27 years agoreset mem->fd == -1 if we unregister that client
wessels [Sun, 10 May 1998 07:46:53 +0000 (07:46 +0000)] 
reset mem->fd == -1 if we unregister that client

27 years agoend-of-object fixes. need to unregister, etc.
wessels [Sat, 9 May 1998 22:49:00 +0000 (22:49 +0000)] 
end-of-object fixes.  need to unregister, etc.

27 years agoDont assert mem->clients == NULL for descriptorless clients
wessels [Sat, 9 May 1998 22:48:41 +0000 (22:48 +0000)] 
Dont assert mem->clients == NULL for descriptorless clients

27 years agoFixed dealing with end-of-transfer bugs. Added lots of debugging
wessels [Sat, 9 May 1998 22:31:39 +0000 (22:31 +0000)] 
Fixed dealing with end-of-transfer bugs.  Added lots of debugging

27 years agomem_obj->fd fixes; set it in protoDispatch()
wessels [Sat, 9 May 1998 10:49:08 +0000 (10:49 +0000)] 
mem_obj->fd fixes; set it in protoDispatch()

27 years agonetdbExchangeUpdatePeer
wessels [Sat, 9 May 1998 05:56:13 +0000 (05:56 +0000)] 
netdbExchangeUpdatePeer

27 years agoinitialize mem_obj->fd = -1
wessels [Sat, 9 May 1998 05:54:02 +0000 (05:54 +0000)] 
initialize mem_obj->fd = -1

27 years agoremoved old, unused code
wessels [Sat, 9 May 1998 05:29:25 +0000 (05:29 +0000)] 
removed old, unused code

27 years agoDavid Luyer's
wessels [Sat, 9 May 1998 04:58:34 +0000 (04:58 +0000)] 
David Luyer's
patch for ARP_ACL on Linux

27 years agoFrom: Henrik Nordstrom <hno@hem.passagen.se>
wessels [Sat, 9 May 1998 04:52:33 +0000 (04:52 +0000)] 
From:    Henrik Nordstrom <hno@hem.passagen.se>
The GNU-regex check was failing on RH5, where GNU-regex is not really
needed.

27 years agoFrom: Henrik Nordstrom <hno@hem.passagen.se>
wessels [Sat, 9 May 1998 04:51:03 +0000 (04:51 +0000)] 
From:    Henrik Nordstrom <hno@hem.passagen.se>

Here is a polished and updated test suite a bit..

* pconn-banger reports a throughtput report, like tcp-banger2
* both tools include support to validate size and a simple checksum
* A couple of pconn-banger bugs fixed.
* Wrote a small perl script that joins a URL list, and a size-checksum
report from tcp-banger to a combined list (needed to use the validation
feature).

Syntax for URL lists is eiter plain 1 URL/line, or
METHOD URL [Request-File|-] [size checksum]

The tools can send HTTP requests with any method or request-body, but
they do not (yet) support HEAD replies.

27 years agoFrom: Henrik Nordstrom <hno@hem.passagen.se>
wessels [Sat, 9 May 1998 04:35:06 +0000 (04:35 +0000)] 
From:    Henrik Nordstrom <hno@hem.passagen.se>
A safeguard to force the client connection to close after a error
message.

27 years agofast select() timeouts for ASYNC_IO
wessels [Sat, 9 May 1998 04:20:45 +0000 (04:20 +0000)] 
fast select() timeouts for ASYNC_IO

27 years agoadding russian pages by Andrew L. Davydov
wessels [Sat, 9 May 1998 04:09:39 +0000 (04:09 +0000)] 
adding russian pages by Andrew L. Davydov

27 years agoclean up checking -lcrypt and -lpthread
wessels [Sat, 9 May 1998 04:06:52 +0000 (04:06 +0000)] 
clean up checking -lcrypt and -lpthread

27 years agouse real program name in ps output
wessels [Sat, 9 May 1998 04:00:23 +0000 (04:00 +0000)] 
use real program name in ps output

27 years agocleanup
wessels [Sat, 9 May 1998 03:59:49 +0000 (03:59 +0000)] 
cleanup

27 years agoneed to protect new exchange functions with #ifdefs
wessels [Sat, 9 May 1998 03:22:16 +0000 (03:22 +0000)] 
need to protect new exchange functions with #ifdefs

27 years agoassertion found bug
wessels [Fri, 8 May 1998 22:40:35 +0000 (22:40 +0000)] 
assertion found bug

27 years agoURN changes -- sorting the output by RTT
wessels [Fri, 8 May 1998 12:34:59 +0000 (12:34 +0000)] 
URN changes -- sorting the output by RTT