]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
27 years agoDirty and buggy alex_2.
rousskov [Sat, 21 Feb 1998 07:56:32 +0000 (07:56 +0000)] 
Dirty and buggy alex_2.

27 years agofilled in more config dump funcs
wessels [Sat, 21 Feb 1998 07:18:10 +0000 (07:18 +0000)] 
filled in more config dump funcs

27 years agoadd debugging
wessels [Sat, 21 Feb 1998 04:05:11 +0000 (04:05 +0000)] 
add debugging

27 years agolittle rewriting needed for disk write callbacks. The callback
wessels [Sat, 21 Feb 1998 04:04:50 +0000 (04:04 +0000)] 
little rewriting needed for disk write callbacks.  The callback
may close the FD, so it must be the last thing we do in
that function.  Fixed cbdata leak.

27 years agofix cbdataAddDbg stuff
wessels [Sat, 21 Feb 1998 04:04:05 +0000 (04:04 +0000)] 
fix cbdataAddDbg stuff

27 years agomade -d command line option take a debugging level also
wessels [Sat, 21 Feb 1998 04:02:42 +0000 (04:02 +0000)] 
made -d command line option take a debugging level also

27 years agooops, debug.c needs its own debugLogTime for pinger etc
wessels [Sat, 21 Feb 1998 04:02:10 +0000 (04:02 +0000)] 
oops, debug.c needs its own debugLogTime for pinger etc

27 years agomake accessLogTime public so it can be used by debug.c
wessels [Sat, 21 Feb 1998 01:47:49 +0000 (01:47 +0000)] 
make accessLogTime public so it can be used by debug.c

27 years agouse duplicate accessLogTime function from access_log.c
wessels [Sat, 21 Feb 1998 01:47:22 +0000 (01:47 +0000)] 
use duplicate accessLogTime function from access_log.c

27 years ago- Unescape URL-path in urlParse() so jokers can't bypass ACLs. Complain
wessels [Sat, 21 Feb 1998 01:47:06 +0000 (01:47 +0000)] 
- Unescape URL-path in urlParse() so jokers can't bypass ACLs.  Complain
  if the resulting URL still has a % character in it.
- Other cleanup; removed some #ifdef'd code

27 years agoundoing bigclean fubar
wessels [Fri, 20 Feb 1998 23:03:20 +0000 (23:03 +0000)] 
undoing bigclean fubar

27 years agomove function to the non-PUBLIC area
wessels [Fri, 20 Feb 1998 06:31:19 +0000 (06:31 +0000)] 
move function to the non-PUBLIC area

27 years agomake all the OBJH functions static, etc
wessels [Fri, 20 Feb 1998 06:28:38 +0000 (06:28 +0000)] 
make all the OBJH functions static, etc

27 years agogracefully handle dups
wessels [Fri, 20 Feb 1998 06:11:48 +0000 (06:11 +0000)] 
gracefully handle dups

27 years agoNew cache manager scheme. Instead of a big table and enums and such,
wessels [Fri, 20 Feb 1998 06:09:46 +0000 (06:09 +0000)] 
New cache manager scheme.  Instead of a big table and enums and such,
now cachemgr stuff is registered by each individual module

27 years agoAdd 'from hostname' on X-Cache reply header line
wessels [Fri, 20 Feb 1998 06:07:36 +0000 (06:07 +0000)] 
Add 'from hostname' on X-Cache reply header line

27 years agocheck urlParse() return value and generate error if needed
wessels [Fri, 20 Feb 1998 03:58:52 +0000 (03:58 +0000)] 
check urlParse() return value and generate error if needed

27 years agofinish aclDump funcs, except for USE_BIN_TREE and USE_SPLAY_TREE
wessels [Fri, 20 Feb 1998 02:27:40 +0000 (02:27 +0000)] 
finish aclDump funcs, except for USE_BIN_TREE and USE_SPLAY_TREE

27 years agopurify fixes?
wessels [Thu, 19 Feb 1998 06:37:40 +0000 (06:37 +0000)] 
purify fixes?

27 years agooops, dns service time is milli-seconds, not micro-seconds
wessels [Thu, 19 Feb 1998 05:55:44 +0000 (05:55 +0000)] 
oops, dns service time is milli-seconds, not micro-seconds

27 years agoAdded service time histogram for DNS (ipcache+fqdncache together)
wessels [Thu, 19 Feb 1998 05:53:57 +0000 (05:53 +0000)] 
Added service time histogram for DNS (ipcache+fqdncache together)
Added statLogHistDump() for printing histograms

27 years agoprevent NPR
wessels [Thu, 19 Feb 1998 05:31:31 +0000 (05:31 +0000)] 
prevent NPR

27 years agoadding spanish error messages
wessels [Thu, 19 Feb 1998 04:04:38 +0000 (04:04 +0000)] 
adding spanish error messages

27 years agoremove DTOI, DTOD crap
wessels [Thu, 19 Feb 1998 03:04:20 +0000 (03:04 +0000)] 
remove DTOI, DTOD crap

27 years agoFixed median histograms. Make bins a fixed-size array, remove
wessels [Thu, 19 Feb 1998 02:50:00 +0000 (02:50 +0000)] 
Fixed median histograms.  Make bins a fixed-size array, remove
pointers to bin/val conversion functions.

27 years agoremove debugs from some other problem
wessels [Thu, 19 Feb 1998 01:45:42 +0000 (01:45 +0000)] 
remove debugs from some other problem

27 years agoavoid storeClientCopy loops for too-long URI-RES replies
wessels [Thu, 19 Feb 1998 01:29:38 +0000 (01:29 +0000)] 
avoid storeClientCopy loops for too-long URI-RES replies

27 years agoAdded service-time histograms for client_http and icp
wessels [Wed, 18 Feb 1998 16:38:14 +0000 (16:38 +0000)] 
Added service-time histograms for client_http and icp

27 years agorename mallocblksize to avoid conflicts
wessels [Wed, 18 Feb 1998 15:21:31 +0000 (15:21 +0000)] 
rename mallocblksize to avoid conflicts
protect mallinfo

27 years agoFrom: Henrik Nordstrom <hno@hem.passagen.se>
wessels [Wed, 18 Feb 1998 08:00:43 +0000 (08:00 +0000)] 
From:    Henrik Nordstrom <hno@hem.passagen.se>
Squid-1.2.beta15: Show memory map as a tree
      Part of my beta14 memory map patch did not make it into beta15.
      Here are the missing pieces.

27 years agoFrom: Henrik Nordstrom <hno@hem.passagen.se>
wessels [Wed, 18 Feb 1998 07:38:53 +0000 (07:38 +0000)] 
From:    Henrik Nordstrom <hno@hem.passagen.se>
Here is a patch that adds support for PORT and default mode FTP data
channel.

1. Try PASV
2. If that fails, try PORT
3. If all fails, fall back on using the default data channel (same local
port as used by the control connection).

Now I think the FTP gateway in Squid is fylly compliant with RFC 1738
(URL) and STD 9 (FTP) for fetching files and directory listings.

FTP PUT support remains to be done. As I said earlier the hard part here
is in client_side.c: to get request bodies down to the protocols in a
clean manner.

27 years agoFrom: Maxim Krasnyansky <max@viper.uznet.net>
wessels [Wed, 18 Feb 1998 07:34:35 +0000 (07:34 +0000)] 
From:    Maxim Krasnyansky <max@viper.uznet.net>
Added 'dns_nameservers' config option to specify non-default DNS
nameserver addresses.

27 years agoadded missing semicolon
wessels [Wed, 18 Feb 1998 06:33:42 +0000 (06:33 +0000)] 
added missing semicolon

27 years agoFrom Henrik
wessels [Wed, 18 Feb 1998 06:28:22 +0000 (06:28 +0000)] 
From Henrik
This patch adds a automatic adjustment of RESERVED_FD when we fail to
create sockets. This functionality mentioned in the comments in
comm_open, but there was no code implementing it...

27 years agomove aioClose() init to disk_init
wessels [Wed, 18 Feb 1998 06:04:03 +0000 (06:04 +0000)] 
move aioClose() init to disk_init

27 years agocall aioClose() to initalize asyncio stuff before forking
wessels [Wed, 18 Feb 1998 02:12:06 +0000 (02:12 +0000)] 
call aioClose() to initalize asyncio stuff before forking

27 years agoFrom: "Michael O'Reilly" <michael@metal.iinet.net.au>
wessels [Wed, 18 Feb 1998 02:08:34 +0000 (02:08 +0000)] 
From:    "Michael O'Reilly" <michael@metal.iinet.net.au>
Required, becuase the contents of errno are undefined unless the
previous library call returned an error. Errno is NOT cleared on a
successful library call.

27 years agoFrom: "Michael O'Reilly" <michael@metal.iinet.net.au>
wessels [Wed, 18 Feb 1998 02:05:27 +0000 (02:05 +0000)] 
From:    "Michael O'Reilly" <michael@metal.iinet.net.au>
require p->tcp_up before switching from PEER_DEAD to PEER_ALIVE.

27 years agoAdd RES_DNSRCH to res.options for -D command line option
wessels [Wed, 18 Feb 1998 01:59:36 +0000 (01:59 +0000)] 
Add RES_DNSRCH to res.options for -D command line option

27 years agoremove some old comment about inside_firewall
wessels [Wed, 18 Feb 1998 01:17:49 +0000 (01:17 +0000)] 
remove some old comment about inside_firewall

27 years agoFixed NULL pointer bug from a storeClientCopy callback. We sort of
wessels [Wed, 18 Feb 1998 01:15:22 +0000 (01:15 +0000)] 
Fixed NULL pointer bug from a storeClientCopy callback.  We sort of
overloaded "size < 0" for these callbacks.  Sometimes its a store-side
failure (didn't open swap file), and sometimes its a client-side
cancellation.  If its cancelled from the client side we check that
http->entry != NULL before proceeding with the request.

27 years agofill in never/always_direct comments
wessels [Sat, 14 Feb 1998 05:57:43 +0000 (05:57 +0000)] 
fill in never/always_direct comments

27 years agoRemoved warnings for dec alpha cc on snmp code
kostas [Sat, 14 Feb 1998 04:20:49 +0000 (04:20 +0000)] 
Removed warnings for dec alpha cc on snmp code

27 years agoallow GET whois
wessels [Sat, 14 Feb 1998 03:37:17 +0000 (03:37 +0000)] 
allow GET whois

27 years agoadd fake request headers for WHOIS requests
wessels [Sat, 14 Feb 1998 03:37:10 +0000 (03:37 +0000)] 
add fake request headers for WHOIS requests

27 years agoupdate
wessels [Sat, 14 Feb 1998 03:05:16 +0000 (03:05 +0000)] 
update

27 years agomime.c
wessels [Sat, 14 Feb 1998 02:59:01 +0000 (02:59 +0000)] 
mime.c

27 years agoupdate
wessels [Sat, 14 Feb 1998 01:47:34 +0000 (01:47 +0000)] 
update

27 years agoupdate
wessels [Sat, 14 Feb 1998 01:27:54 +0000 (01:27 +0000)] 
update

27 years agoFrom Henrik Nordstrom
wessels [Sat, 14 Feb 1998 01:26:52 +0000 (01:26 +0000)] 
From Henrik Nordstrom

- A built in memory leak detector. Activated when compiled with
  --enable-xmalloc-debug-trace. Squid-1.2.beta14: Option -m to turn on
  malloc tracing

- The printing of the memory tracing is turned on by using the -m option
  when starting squid, or by setting the global variable xmalloc_trace to
  true from a debugger. A useful GDB macro:

     define malloc_info
       printf "Allocation %d from %s:%d size %d\n", \
           malloc_number($arg0), malloc_file_name($arg0), \
           malloc_line_number($arg0), mallocblksize($arg0)
     end

27 years agoupdate
wessels [Sat, 14 Feb 1998 01:19:40 +0000 (01:19 +0000)] 
update

27 years agostoreSwapLogData leak
wessels [Sat, 14 Feb 1998 01:16:06 +0000 (01:16 +0000)] 
storeSwapLogData leak

27 years agoFrom: Henrik Nordstrom <hno@hem.passagen.se>
wessels [Sat, 14 Feb 1998 00:55:18 +0000 (00:55 +0000)] 
From:    Henrik Nordstrom <hno@hem.passagen.se>
Take icon content types from the mime.conf definitions

27 years agoFrom: Henrik Nordstrom <hno@hem.passagen.se>
wessels [Sat, 14 Feb 1998 00:47:38 +0000 (00:47 +0000)] 
From:    Henrik Nordstrom <hno@hem.passagen.se>
This patch changes the content-type for type specified ftp transfers to
type=i ->  application/octet-stream
type=a ->  text/plain

27 years agoInstead of assertion, debug if swap_file_number != -1 in storeCleanup
wessels [Fri, 13 Feb 1998 12:49:14 +0000 (12:49 +0000)] 
Instead of assertion, debug if swap_file_number != -1 in storeCleanup

27 years agoadjust swap_file_sz if it looks like an old style swapmeta
wessels [Fri, 13 Feb 1998 07:32:04 +0000 (07:32 +0000)] 
adjust swap_file_sz if it looks like an old style swapmeta

27 years agoadded "counters" cachemgr operation
wessels [Fri, 13 Feb 1998 06:52:13 +0000 (06:52 +0000)] 
added "counters" cachemgr operation

27 years agoremove storeCleanupComplete
wessels [Fri, 13 Feb 1998 06:46:14 +0000 (06:46 +0000)] 
remove storeCleanupComplete
comment out ConvertFromFile for now

27 years agoadd swap_log_op_str
wessels [Fri, 13 Feb 1998 06:37:27 +0000 (06:37 +0000)] 
add swap_log_op_str

27 years agoupdate
wessels [Fri, 13 Feb 1998 06:36:28 +0000 (06:36 +0000)] 
update

27 years ago - Added -S command line option to double-check store
wessels [Fri, 13 Feb 1998 06:35:58 +0000 (06:35 +0000)] 
    - Added -S command line option to double-check store
          consistency with disk files in storeCleanup().
        - Fixed a problem with transactional logging.  In many
          cases we were adding the public cache key and then
          logging a delete for the private key.  This is worthless
          because during rebuild we could not locate the previous
          public-keyed entry.  Now we assert that only public-keyed
          entries can be logged to swap.state.  storeSetPublicKey()
          and storeSetPrivateKey() have been modified to log an
          ADD or DEL when the key changes.
        - Fixed storeDirClean bug.  Needed to call
          storeDirProperFileno() so the "dirn bits" get set.
        - Fixed a storeRebuildFromDirectory bug.  fullpath[] and
          fullfilename[] were static to that function and did
          not change when the "rebuild_dir" arg did.  Moved these
          buffers to the rebuild_dir structure.
        - In storeRebuildFromSwapLog, we were calling storeRelease()
          for cache key collisions.  This only set the RELEASE_REQUEST
          bit and did not clear the swap_file_number in the filemap or
          in the StoreEntry, so the swap file could get unlinked later
          when it was really released.

27 years agobeautification
kostas [Fri, 13 Feb 1998 04:22:48 +0000 (04:22 +0000)] 
beautification

27 years agoAdded new (and meaningful) variables to cacheProtoAggregateStats
kostas [Fri, 13 Feb 1998 03:55:41 +0000 (03:55 +0000)] 
Added new (and meaningful) variables to cacheProtoAggregateStats

27 years agoupdate
wessels [Thu, 12 Feb 1998 23:36:57 +0000 (23:36 +0000)] 
update

27 years agoput back checks for key == NULL
wessels [Thu, 12 Feb 1998 23:36:30 +0000 (23:36 +0000)] 
put back checks for key == NULL

27 years agoupdate
wessels [Thu, 12 Feb 1998 14:04:13 +0000 (14:04 +0000)] 
update

27 years ago - Changed StoreEntry->object_len to ->swap_file_sz so we
wessels [Thu, 12 Feb 1998 14:03:04 +0000 (14:03 +0000)] 
    - Changed StoreEntry->object_len to ->swap_file_sz so we
          can verify the disk file size at restart.  Moved object_len
          to MemObject->object_sz.  Note object_sz is initialized
          to -1.  If object_sz < 0, then we need to open the swap
          file and read the swap metadata.
        - Changed store_client->mem to ->entry because we need
          e->swap_file_sz to set mem->object_sz at swapin.
        - Removed some superfluous checks for e->key != NULL in
          storeSet*Key().
        - Renamed storeSwapData structure to storeSwapLogData.
        - Fixed storeGetNextFile to not increment d->dirn.  Added
          check for opendir() failure.
        - Fixed storeRebuildStart to properly link the directory
          list for storeRebuildfromDirectory mode.

27 years agoformatting
wessels [Thu, 12 Feb 1998 04:42:28 +0000 (04:42 +0000)] 
formatting

27 years agoAnother storeDirClean() fix. Had to write a 'belongs here' function.
wessels [Thu, 12 Feb 1998 01:48:50 +0000 (01:48 +0000)] 
Another storeDirClean() fix.  Had to write a 'belongs here' function.

27 years agogindent
wessels [Wed, 11 Feb 1998 10:14:36 +0000 (10:14 +0000)] 
gindent

27 years agoupdate
wessels [Wed, 11 Feb 1998 10:13:54 +0000 (10:13 +0000)] 
update

27 years agoold fde->lifetime_data is unused
wessels [Wed, 11 Feb 1998 08:11:15 +0000 (08:11 +0000)] 
old fde->lifetime_data is unused

27 years agoupdate
wessels [Wed, 11 Feb 1998 08:07:23 +0000 (08:07 +0000)] 
update

27 years agoupdate
wessels [Wed, 11 Feb 1998 06:49:49 +0000 (06:49 +0000)] 
update

27 years agoremoved fm->last_file_number_allocated which wasnt really being used
wessels [Wed, 11 Feb 1998 05:29:51 +0000 (05:29 +0000)] 
removed fm->last_file_number_allocated which wasnt really being used

27 years agoprotect snmpConnectionClose
wessels [Wed, 11 Feb 1998 05:28:57 +0000 (05:28 +0000)] 
protect snmpConnectionClose

27 years agodebug section cleanup
wessels [Wed, 11 Feb 1998 05:17:52 +0000 (05:17 +0000)] 
debug section cleanup

27 years agoMerged fdstat.c into fd.c
wessels [Wed, 11 Feb 1998 04:44:30 +0000 (04:44 +0000)] 
Merged fdstat.c into fd.c

27 years agoChanged error message generated when we read 0 bytes from the FTP
wessels [Wed, 11 Feb 1998 01:39:36 +0000 (01:39 +0000)] 
Changed error message generated when we read 0 bytes from the FTP
server control socket.  Instead of a read error, call it an FTP
protocol error.  Thats not really great either.  maybe we need a new
ERR_ type.

27 years agocompiler type warnings
wessels [Wed, 11 Feb 1998 01:06:22 +0000 (01:06 +0000)] 
compiler type warnings

27 years agoadding
wessels [Wed, 11 Feb 1998 01:05:10 +0000 (01:05 +0000)] 
adding

27 years agotypos
wessels [Tue, 10 Feb 1998 12:44:38 +0000 (12:44 +0000)] 
typos

27 years agoupdate
wessels [Tue, 10 Feb 1998 12:38:26 +0000 (12:38 +0000)] 
update

27 years agoMerge unlinkdInit() and unlinkdCreate(). keep unlinkd->squid FD in
wessels [Tue, 10 Feb 1998 09:47:35 +0000 (09:47 +0000)] 
Merge unlinkdInit() and unlinkdCreate().  keep unlinkd->squid FD in
a variable and close it in unlinkdClose().

27 years agoupdate
wessels [Tue, 10 Feb 1998 09:36:20 +0000 (09:36 +0000)] 
update

27 years agomake storeDir path funcs more readable
wessels [Tue, 10 Feb 1998 09:16:39 +0000 (09:16 +0000)] 
make storeDir path funcs more readable

27 years agomove setsid() call to ipc.c
wessels [Tue, 10 Feb 1998 07:58:42 +0000 (07:58 +0000)] 
move setsid() call to ipc.c

27 years agoChanges to accomodate disk write failures:
wessels [Tue, 10 Feb 1998 07:55:03 +0000 (07:55 +0000)] 
Changes to accomodate disk write failures:

0) The problem: file_close() doesn't always close the file immediately;
   i.e. when there are pending buffers to write.  However, after
   calling file_close, we were also calling storeUnlockObject and
   the lock count could become zero then.  Bad things would happen
   if we got a callback from a file_write after the lock count went
   to zero.  We need a way to prevent the file_write callback from
   happening when we "close" the swapout FD.

1) the file_write() callback data must now be in the callback
   database (cbdata).  We can't add StoreEntry's to cbdata for a couple
   of reasons.  So now we use the swapout_ctrl_t structure for the
   callback data.  Previously this was used only for the file_open
   process, but now we keep it around for the entire swapout duration.
   A new element MemObject->swapout.ctrl points to this data strucutre
   so we can re-access it from storeCheckSwapOut.

2) Changed the way write errors are handled by diskHandleWrite.
   If there is no callback function, now we exit with a fatal
   message under the assumption that the file in question is a log
   file or IPC pipe.  Otherwise, we flush all the pending write
   buffers (so we don't see multiple repeated write errors from
   the same descriptor) and let the upper layer decide how to handle
   the failure.

3) Fixes to storeDirWriteCleanLogs.  A write failure was leaving some
   empty swap.state files, even though it tells us that its "not
   replacing the file."  Don't flush/rename logs which we have
   prematurely closed due to write failures, indiciated by
   fd[dirn] == -1.  Close these files LAST, not before renaming.

27 years agocall setsid() early in main() so the helper programs don't
wessels [Tue, 10 Feb 1998 07:42:54 +0000 (07:42 +0000)] 
call setsid() early in main() so the helper programs don't

27 years agoI think we dont need FD_WRITE_PENDING
wessels [Tue, 10 Feb 1998 04:17:25 +0000 (04:17 +0000)] 
I think we dont need FD_WRITE_PENDING

27 years agoadd assertion
wessels [Tue, 10 Feb 1998 03:23:49 +0000 (03:23 +0000)] 
add assertion

27 years ago- Don't doubly call storeUnlockObject() e.g. when file_write fails
wessels [Tue, 10 Feb 1998 02:07:00 +0000 (02:07 +0000)] 
- Don't doubly call storeUnlockObject() e.g. when file_write fails
- reset filemap bit when clearing swap_file_number

27 years agodon't use ntohl() etc on ICP shostid field
wessels [Tue, 10 Feb 1998 02:05:06 +0000 (02:05 +0000)] 
don't use ntohl() etc on ICP shostid field

27 years agoaclDumpIpList broken for USE_SPLAY_TREE
wessels [Mon, 9 Feb 1998 00:43:03 +0000 (00:43 +0000)] 
aclDumpIpList broken for USE_SPLAY_TREE

27 years agoremove brackets from cachemgr output
wessels [Sat, 7 Feb 1998 15:13:36 +0000 (15:13 +0000)] 
remove brackets from cachemgr output

27 years agoincrease debug level on host hopping debug message
wessels [Sat, 7 Feb 1998 14:55:32 +0000 (14:55 +0000)] 
increase debug level on host hopping debug message

27 years agoFix closing in/out UDP sockets for both ICP and SNMP
wessels [Sat, 7 Feb 1998 06:58:03 +0000 (06:58 +0000)] 
Fix closing in/out UDP sockets for both ICP and SNMP

27 years agoremove ICP_AUTH_SIZE
wessels [Sat, 7 Feb 1998 06:57:29 +0000 (06:57 +0000)] 
remove ICP_AUTH_SIZE

27 years agostore dirty rebuild fixes
wessels [Sat, 7 Feb 1998 01:54:09 +0000 (01:54 +0000)] 
store dirty rebuild fixes

27 years agogindent
wessels [Sat, 7 Feb 1998 00:50:17 +0000 (00:50 +0000)] 
gindent