Skip to content

Commit

Permalink
polipo: increase the maximum number of open files
Browse files Browse the repository at this point in the history
This avoid to reach the previous limit (20480) after few hours/days of use.

Sample errors:

```
polipo[3604]: Couldn't establish listening socket: Too many open files
polipo[3604]: Couldn't create pipe: Too many open files
polipo[3604]: dnssd_clientstub deliver_request: socketpair failed 24 (Too many open files)
polipo[3604]: Couldn't create disk file ~/.polipo-cache/init-p01st.push.apple.com/S5s7LMk8oj4eqjqILbosTQ==: Too many open files
```

Closes Homebrew/legacy-homebrew#47482.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
bdossantos authored and MikeMcQuaid committed Dec 29, 2015
1 parent 3f7981a commit 4250271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Formula/polipo.rb
Expand Up @@ -45,14 +45,14 @@ def plist; <<-EOS.undent
<array>
<string>#{opt_bin}/polipo</string>
</array>
<!-- Set `ulimit -n 20480`. The default OS X limit is 256, that's
<!-- Set `ulimit -n 65536`. The default OS X limit is 256, that's
not enough for Polipo (displays 'too many files open' errors).
It seems like you have no reason to lower this limit
(and unlikely will want to raise it). -->
<key>SoftResourceLimits</key>
<dict>
<key>NumberOfFiles</key>
<integer>20480</integer>
<integer>65536</integer>
</dict>
</dict>
</plist>
Expand Down

0 comments on commit 4250271

Please sign in to comment.