Re: Squid Patch for Cygwin 1.5

2004-11-11 Thread Ngai Mo
I'd like to take the compile option. However, don't know which file and line
to modify. Can you elaborate more ?

Ngai Mo





--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Squid Patch for Cygwin 1.5

2003-11-15 Thread Robert Collins
On Wed, 2003-11-05 at 08:06, Christian Weinberger wrote:
> After some investigation I found an interim solution to get the current 
> cygwin squid version (2.4-STABLE7) working with the new 1.5 DLL series. 
> This has been tested and works for me with 1.5.5, but should work with 
> all 1.5 versions.
> 
> A posting from Tom Oehser gave the necessary input:
> The problem is that squid assumes a maximum number of file handles 
> avalable (RLIMIT_NOFILE) of 8192. The autoconf test does not work on 
> cygwin, so it always returns the maximum value. This has always been 
> that way on the cygwin platform.
> But with version 1.5, there are fewer ressources available (less than 
> 8192) and this causes squid to fail.

Which is strange, as NOFILE is still defined at 8192. I definately need
to have a poke around in here. If possible I'll try and get cygwin's
poll size lifted again: it'd be a shame to be limiting the number of
fd's squid can use unnecessarily.

Rob
-- 
GPG key available at: .


signature.asc
Description: This is a digitally signed message part


Squid Patch for Cygwin 1.5

2003-11-04 Thread Christian Weinberger
After some investigation I found an interim solution to get the current 
cygwin squid version (2.4-STABLE7) working with the new 1.5 DLL series. 
This has been tested and works for me with 1.5.5, but should work with 
all 1.5 versions.

A posting from Tom Oehser gave the necessary input:
The problem is that squid assumes a maximum number of file handles 
avalable (RLIMIT_NOFILE) of 8192. The autoconf test does not work on 
cygwin, so it always returns the maximum value. This has always been 
that way on the cygwin platform.
But with version 1.5, there are fewer ressources available (less than 
8192) and this causes squid to fail.

So if you build squid on your own, just change the include file with the 
autoconf constants to use a smaller number (about 3000 works fine), 
after you did the ./configure and before you do make.

If you only want to use the binary distribution, follow these steps. 
This only applies to squid 2.4.STABLE7-1. The file squid.exe is dated to 
16.7.2002 and has 482.816 bytes.
Now use the hex editor of you choice and open squid.exe (or, 
preferrably, a copy of it).
At offset 0074420h you find the DWORD 00 20 00 00 (representing 8192 
decimal). It is the second occurance of the DWORD if you search in 
REVERSE order from the end of the file.

Now change this to DWORD 00 0C 00 00.
Save the file and it should work.

Don´t forget, this is just an interim solution. So let´s wait for the 
next "real" release of the squid package.

With great respect and many thanks to the cygwin project,

Christian


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/