]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
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

27 years agoupdate
wessels [Sat, 7 Feb 1998 00:49:22 +0000 (00:49 +0000)] 
update

27 years ago1.2.beta14
wessels [Sat, 7 Feb 1998 00:49:12 +0000 (00:49 +0000)] 
1.2.beta14

27 years agoFixed store_rebuild handling of SWAP_LOG_DEL. Don't want to call
wessels [Sat, 7 Feb 1998 00:47:07 +0000 (00:47 +0000)] 
Fixed store_rebuild handling of SWAP_LOG_DEL.  Don't want to call
storeReleaseRequest() directly, because it won't free up the fileno
and other things.  Calling storeRelease will just call storeReleaseRequest.

Also don't write the ENTRY_SPECIAL entries to the swap.state log.

27 years agoPUT method support
kostas [Sat, 7 Feb 1998 00:33:44 +0000 (00:33 +0000)] 
PUT method support

27 years agorename do_reuse to opt_reuseaddr
wessels [Sat, 7 Feb 1998 00:30:51 +0000 (00:30 +0000)] 
rename do_reuse to opt_reuseaddr

27 years agofix aclDumpTimeSpec
wessels [Fri, 6 Feb 1998 13:51:03 +0000 (13:51 +0000)] 
fix aclDumpTimeSpec

27 years ago- removed snmp_config_file option (not used)
wessels [Fri, 6 Feb 1998 13:44:31 +0000 (13:44 +0000)] 
- removed snmp_config_file option (not used)
- added aclDumpTimeSpec()

27 years agoCleanup and filling-in by Oskar Pearson.
wessels [Fri, 6 Feb 1998 12:56:48 +0000 (12:56 +0000)] 
Cleanup and filling-in by Oskar Pearson.

27 years agoHenrik's "full malloc debugging"
wessels [Fri, 6 Feb 1998 07:55:56 +0000 (07:55 +0000)] 
Henrik's "full malloc debugging"

27 years agoHenrik's "full memory debugging"
wessels [Fri, 6 Feb 1998 07:54:59 +0000 (07:54 +0000)] 
Henrik's "full memory debugging"

27 years agoFilling in some of the config dumping routines
wessels [Fri, 6 Feb 1998 07:48:59 +0000 (07:48 +0000)] 
Filling in some of the config dumping routines

27 years agobuilding outside the source tree fixes
wessels [Fri, 6 Feb 1998 04:37:48 +0000 (04:37 +0000)] 
building outside the source tree fixes

27 years agoupdate
wessels [Fri, 6 Feb 1998 04:11:11 +0000 (04:11 +0000)] 
update

27 years agoneed to set clear flag on memAlloc() calls
wessels [Fri, 6 Feb 1998 04:10:36 +0000 (04:10 +0000)] 
need to set clear flag on memAlloc() calls

27 years agoremoved netdb_hosts and netdb_addrs from meta_data
wessels [Fri, 6 Feb 1998 04:10:23 +0000 (04:10 +0000)] 
removed netdb_hosts and netdb_addrs from meta_data

27 years agouse xfree
wessels [Fri, 6 Feb 1998 03:55:06 +0000 (03:55 +0000)] 
use xfree

27 years agolots
wessels [Fri, 6 Feb 1998 03:54:45 +0000 (03:54 +0000)] 
lots

27 years agocopy over the 1.1 net_db.c changes to make it easier to
wessels [Fri, 6 Feb 1998 03:54:38 +0000 (03:54 +0000)] 
copy over the 1.1 net_db.c changes to make it easier to
add/delete/move hosts between networks.

27 years agoDefine some macros for function names we should not call directly
wessels [Fri, 6 Feb 1998 03:53:38 +0000 (03:53 +0000)] 
Define some macros for function names we should not call directly

27 years agorename ->func to ->free_func to avoid conflicts
wessels [Fri, 6 Feb 1998 03:47:35 +0000 (03:47 +0000)] 
rename ->func to ->free_func to avoid conflicts

27 years agorenamed ->free to ->free_func to avoid conflicts
wessels [Fri, 6 Feb 1998 03:33:58 +0000 (03:33 +0000)] 
renamed ->free to ->free_func to avoid conflicts
use xstrncpy

27 years agouse xstrncpy
wessels [Fri, 6 Feb 1998 03:32:35 +0000 (03:32 +0000)] 
use xstrncpy

27 years agouse xmemcpy and xstrncpy
wessels [Fri, 6 Feb 1998 03:32:24 +0000 (03:32 +0000)] 
use xmemcpy and xstrncpy

27 years agoremove GOT EOF message
wessels [Fri, 6 Feb 1998 00:37:43 +0000 (00:37 +0000)] 
remove GOT EOF message

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

27 years agoupdate
wessels [Thu, 5 Feb 1998 09:59:40 +0000 (09:59 +0000)] 
update

27 years agocall release request on SWAP_LOG_DEL entries.
wessels [Thu, 5 Feb 1998 07:56:49 +0000 (07:56 +0000)] 
call release request on SWAP_LOG_DEL entries.
Dont log 'invalid swap file' thousands of times

27 years agoremove normal_shutdown prototype
wessels [Thu, 5 Feb 1998 07:55:53 +0000 (07:55 +0000)] 
remove normal_shutdown prototype

27 years agoalways compile MD5 because of new cache key scheme
wessels [Thu, 5 Feb 1998 06:52:00 +0000 (06:52 +0000)] 
always compile MD5 because of new cache key scheme

27 years agocompiler
wessels [Thu, 5 Feb 1998 06:50:26 +0000 (06:50 +0000)] 
compiler

27 years agogindent
wessels [Thu, 5 Feb 1998 06:42:46 +0000 (06:42 +0000)] 
gindent

27 years agoDon't have unlinkd.c depend on USE_ASYNC_IO. Instead use USE_UNLINKD
wessels [Thu, 5 Feb 1998 06:42:12 +0000 (06:42 +0000)] 
Don't have unlinkd.c depend on USE_ASYNC_IO.  Instead use USE_UNLINKD
which gets set in squid.h.

27 years ago- moved normal_shutdown() to main.c
wessels [Thu, 5 Feb 1998 06:41:31 +0000 (06:41 +0000)] 
- moved normal_shutdown() to main.c
- had to make releaseServerSockets, dumpMallocStats, and PrintRusage
  public.

27 years ago- Take Stewarts MONOTONIC_STORE patch, remove the #else code
wessels [Thu, 5 Feb 1998 06:41:00 +0000 (06:41 +0000)] 
- Take Stewarts MONOTONIC_STORE patch, remove the #else code
- create storeUnlinkFileno() to consolidate some USE_ASYNC_IO #ifdefs
- added storeKeyInit()
- added storeKeyNull()
- Fixed storeRebuildFromDirectory() FUM bug.
- Removed unused fileno stack stuff.  replaced by MONOTONIC_STORE changes
- Fixed storeClientReadBody() and storeClientReadHeaders() to call
  httpParseReplyHeaders()
- Modified storeDirOpenTmpSwapLog() to return whether or not the
  existing swap.state file has any entries, so we know to use
  storeRebuildFromDirectory.

27 years agoset USE_UNLINKD depending on USE_ASYNC_IO
wessels [Thu, 5 Feb 1998 06:36:06 +0000 (06:36 +0000)] 
set USE_UNLINKD depending on USE_ASYNC_IO

27 years agolots
wessels [Thu, 5 Feb 1998 06:35:48 +0000 (06:35 +0000)] 
lots

27 years agoUSE_ASYNC_IO cleanup
wessels [Thu, 5 Feb 1998 06:35:33 +0000 (06:35 +0000)] 
USE_ASYNC_IO cleanup
moved normal_shutdown() here from tools.c

27 years agocontinue counting ICP_DENIED queries even after we stop replying to them.
wessels [Thu, 5 Feb 1998 06:35:04 +0000 (06:35 +0000)] 
continue counting ICP_DENIED queries even after we stop replying to them.

27 years agoremoved unused fileno stack
wessels [Thu, 5 Feb 1998 06:34:28 +0000 (06:34 +0000)] 
removed unused fileno stack

27 years agomake open() error debug level 3
wessels [Thu, 5 Feb 1998 06:34:00 +0000 (06:34 +0000)] 
make open() error debug level 3

27 years agoTry to avoid 'waiting-for-headers' loops.
wessels [Thu, 5 Feb 1998 06:33:37 +0000 (06:33 +0000)] 
Try to avoid 'waiting-for-headers' loops.
changed old icp.c debugs to section 33.

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

27 years agogindent
wessels [Wed, 4 Feb 1998 14:22:13 +0000 (14:22 +0000)] 
gindent

27 years agodebug msg level change
wessels [Wed, 4 Feb 1998 14:21:23 +0000 (14:21 +0000)] 
debug msg level change

27 years agodebug msg fix
wessels [Wed, 4 Feb 1998 14:18:23 +0000 (14:18 +0000)] 
debug msg fix

27 years ago- fixed incorrect fread() return value check
wessels [Wed, 4 Feb 1998 14:14:18 +0000 (14:14 +0000)] 
- fixed incorrect fread() return value check
- report #entries read for each swap log

27 years agomake storeDirWriteCleanLogs write binary swaplog
wessels [Wed, 4 Feb 1998 14:01:21 +0000 (14:01 +0000)] 
make storeDirWriteCleanLogs write binary swaplog