wessels [Mon, 3 Nov 1997 23:19:23 +0000 (23:19 +0000)]
From: Henrik Nordstrom <hno@hem.passagen.se>
* Allow %escapes to be send in a FTP url. The path is now handled correctly:
1) Split the path on /
2) Decode each part (possibly introducing / or ..)
* Removed up the "cleanup" of URL's.. it is basically not a good idea to
try to clean up the URL. If we get a strange URL it is probably the
intention. The "cleanup" code usually makes a mess of things.. And when
this cleanup was removed, it was much easier to handle "BASE HREF" or
not...
* Added back .. in listings (code was not updated)
* Changed .. to generate %2e%2e/ when appropriate ("root" directory, or
after %2e%2e)
* Added a link to %2f/ when on "Top level" URL.
* Added a "Up" link to ../ on the above two ones. (I chosed the term Up,
since it is to a shorter URL.. whether this it up/down in the file
system is hard to tell...)
* Changed text to "Home directory" when in directory /%2f/
wessels [Mon, 3 Nov 1997 23:05:23 +0000 (23:05 +0000)]
From: Henrik Nordstrom <hno@hem.passagen.se>
Here is a small patch to squid-1.2.beta4 to support %nn escapes in FTP
URLs... (all code was already there but never called...)
wessels [Thu, 30 Oct 1997 07:50:36 +0000 (07:50 +0000)]
- Fix up for swapout complete. Now always set the state to SWAPOUT_DONE
and add the object size to the 'store_swap_size'. The release call
will free and subtract it.
- Change storeMaintainSwapSpace() and storeGetMemSpace(). Either the
object is locked, or it can be removed. For storeMaintainSwapSpace()
if the objects age is less than the dynamic LRU value, then keep it
around. This may cause problems after a restart when the store linked
list is not ordered.
wessels [Thu, 30 Oct 1997 07:47:48 +0000 (07:47 +0000)]
Misc FTP fixes
- move the timeout from the control socket to the data socket during
data transfer
- Add the read timeout to all the commSetSelect(COMM_HANDLE_READ)
calls.
- Set the reply->hdr_sz properly, and use the DELAY_SENDING bit in
send success headers code.
wessels [Tue, 28 Oct 1997 05:48:55 +0000 (05:48 +0000)]
- Removed IP_BLOCKING_LOOKUP and FQDN_BLOCKING_LOOKUP flags. All DNS
lookups must now be non-blocking.
- Don't queue something to a dnsserver if it is DNS_FLAG_CLOSING.
- Call an IP cache entry expired if addrs.count == 0.
wessels [Tue, 28 Oct 1997 04:34:52 +0000 (04:34 +0000)]
Reengineered the double-linked lists for inmem objects, and now another
for all objects. The 'dlink_node' structures are embedded into
StoreEntry and MemObject. storeGetMemSpace() and storeGetSwapSpace()
start at the tail of the lists and start deleting their way up.
In storeLockObject() we move a StoreEntry to the top of the list
if the lock_count was zero.
wessels [Mon, 27 Oct 1997 12:37:35 +0000 (12:37 +0000)]
- split storeClientCopy into itself and storeClientCopy2().
Problem was that InvokeHandlers() did a memCopy() for ALL existing
callbacks. Thats not allowed any more--some of the clients might
be reading from disk. So InvokeHandlers now calls storeClientCopy2().
- removed storeCopy()