wessels [Thu, 1 Jan 1998 03:32:32 +0000 (03:32 +0000)]
From: Henrik Nordstrom <hno@hem.passagen.se>
Here is a patch that reuses the already opened data channel when we
trigger the different "hacks" (directory without trailing /, or the
slashhack).
wessels [Thu, 1 Jan 1998 02:28:08 +0000 (02:28 +0000)]
Don't set a close handler for the data FD. If we have both ctrl and
data FD's call ftpStateFree() upon close, then we have to delete the
close handler which did NOT get called to prevent ftpStateFree()
getting called twice. Instead we'll always call comm_close() on the
ctrl FD.
wessels [Thu, 1 Jan 1998 00:52:04 +0000 (00:52 +0000)]
Add comm_add_close_handler() for ftpState->data.fd. If the data socket
connection failed, then a comm_close() call was closing the data socket,
but not freeing up the ftpState.
wessels [Wed, 31 Dec 1997 12:06:22 +0000 (12:06 +0000)]
From: Stewart Forster <slf@connect.com.au>
In the default makefile, there is no mention of needing to include
-lpthread for Solaris (I don't know about other OS's). This WILL
cause squid to fail under Solaris, and the standard C library has
non-reentrant routines that will die unless the appropriate thread
library is included.
wessels [Wed, 31 Dec 1997 12:01:46 +0000 (12:01 +0000)]
From: Stewart Forster <slf@connect.com.au>
In comm.c, for VERY low load if you're using async I/O it will go
VERY slow because it will only timeout of the poll every second if
there's no traffic to squid. The fix is to reduce the timeout.
This will now poll for asyncio 20 times a second, rather than once.
This will give a certain 40K/sec transfer rate on a Solaris box.
wessels [Wed, 31 Dec 1997 11:58:04 +0000 (11:58 +0000)]
From: Stewart Forster <slf@connect.com.au>
The patch given by Oskar Pearson was too Linux-centric and ignored
all other OS's desires to use poll(). The corrected business is
below.
wessels [Wed, 31 Dec 1997 06:09:45 +0000 (06:09 +0000)]
- Fixed bogus call to storeDirUpdateSwapSize() for "aborted" objects
or those which never reach SWAPOUT_DONE state.
- use e->object_len in every storeDirUpdateSwapSize() call.
- assert swap fileno is free in getUnusedFileno()
- in storeRelease(), call storeLog() before clearing swap_file_number.
kostas [Sun, 21 Dec 1997 18:00:19 +0000 (18:00 +0000)]
Modified for AS support. We need to know the ip address before going
to PeerSelectFoo() and neighborCount() because AclMatchAcl() can't
block (and it would be more complicated to make a n-b version of it)
wessels [Sun, 7 Dec 1997 01:58:34 +0000 (01:58 +0000)]
Moved URN->URL resolution over to "server-side"
Now we always generate an HTML list of the possibilities. IF we
get a 'minimum RTT' site, then we'll add a 'Location' reply header
and the user-agent should fetch it automatically.
wessels [Sat, 6 Dec 1997 02:30:03 +0000 (02:30 +0000)]
ACL ARP support
From: dale@server.ctam.bitmcnit.bryansk.su (Dale)
Working on setting up a proper firewall for a network containing some
Win'95 computers at our Univ, I've discovered that some smart students
avoid the restrictions easily just changing their IP addresses in Win'95
Contol Panel... It has been getting boring, so I took Squid-1.1.18
sources and added a new acl type for hard-wired access control:
wessels [Thu, 4 Dec 1997 02:45:24 +0000 (02:45 +0000)]
argh, more changes to deal with sending errors back in StoreEntry's.
Now, for failed requests, we will generate a clientHttpRequest struct
so we can use clientSendMoreData() etc..