#14076 closed defect (fixed)
BUG: squid fails to detect max open files on Leopard
Reported by: | josh+macports@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | ||
Port: |
Description
The behaviour of setrusage has changed in Leopard. It will now return an error when called the way squid's configure script does. That makes squid use its rather low default of a maximum of 256 files open at once. The attached patch fixes the problem in the way suggested by the setrusage man page. The change is harmless on pre-Leopard versions of OS X.
I've also opened a bug upstream: http://www.squid-cache.org/bugs/show_bug.cgi?id=2204
Attachments (1)
Change History (5)
Changed 17 years ago by josh+macports@…
Attachment: | squid-maxfiles.diff added |
---|
comment:1 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | mww@… removed |
---|---|
Owner: | changed from macports-tickets@… to mww@… |
Assigning to maintainer.
comment:2 Changed 17 years ago by jmroot (Joshua Root)
mww, is there a technical reason why this shouldn't be committed, or have you just been busy?
comment:3 Changed 17 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
I went ahead and committed this fix in r34963, since the bug severely reduces squid's scalability on Leopard.
Note: See
TracTickets for help on using
tickets.
fix