New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #14076 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

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

squid-maxfiles.diff Download (1.2 KB) - added by josh+macports@… 4 years ago.
fix

Change History

Changed 4 years ago by josh+macports@…

fix

Changed 4 years ago by ryandesign@…

  • cc mww@… removed
  • owner changed from macports-tickets@… to mww@…

Assigning to maintainer.

Changed 4 years ago by jmr@…

mww, is there a technical reason why this shouldn't be committed, or have you just been busy?

Changed 4 years ago by jmr@…

  • status changed from new to closed
  • resolution set to fixed

I went ahead and committed this fix in r34963, since the bug severely reduces squid's scalability on Leopard.

Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.