* [PR PATCH] i2pd: increase open files limit
@ 2022-10-28 15:43 steinex
2022-11-04 18:41 ` [PR PATCH] [Merged]: " paper42
0 siblings, 1 reply; 2+ messages in thread
From: steinex @ 2022-10-28 15:43 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1441 bytes --]
There is a new pull request by steinex against master on the void-packages repository
https://github.com/steinex/void-packages i2pd
https://github.com/void-linux/void-packages/pull/40206
i2pd: increase open files limit
To run i2pd as a "floodfill" (special mode which contributes to the network more) we need a higher open files limit. 8192 is recommended by upstream but let's just double it to be on the safe side.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/40206.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-i2pd-40206.patch --]
[-- Type: text/x-diff, Size: 1284 bytes --]
From 37931663bf186b43ea90946dd864d1b0adc1b3dd Mon Sep 17 00:00:00 2001
From: Frank Steinborn <steinex@nognu.de>
Date: Fri, 28 Oct 2022 13:45:32 +0200
Subject: [PATCH] i2pd: increase open files limit
To run i2pd as a "floodfill" (special mode which contributes to the
network more) we need a higher open files limit. 8192 is recommended by
upstream but let's just double it to be on the safe side.
---
srcpkgs/i2pd/files/i2pd/run | 2 ++
srcpkgs/i2pd/template | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/srcpkgs/i2pd/files/i2pd/run b/srcpkgs/i2pd/files/i2pd/run
index 362ca4004db3..2395b784eed4 100644
--- a/srcpkgs/i2pd/files/i2pd/run
+++ b/srcpkgs/i2pd/files/i2pd/run
@@ -1,4 +1,6 @@
#!/bin/sh
+[ -r conf ] && . ./conf
+ulimit -n ${MAX_OPEN_FILES:-16384}
exec chpst -u _i2pd:_i2pd i2pd --service \
--conf=/etc/i2pd/i2pd.conf \
--tunconf=/etc/i2pd/tunnels.conf 2>&1
diff --git a/srcpkgs/i2pd/template b/srcpkgs/i2pd/template
index 253e5e4aed9a..269d719ff21b 100644
--- a/srcpkgs/i2pd/template
+++ b/srcpkgs/i2pd/template
@@ -1,7 +1,7 @@
# Template file for 'i2pd'
pkgname=i2pd
version=2.43.0
-revision=1
+revision=2
build_style=gnu-makefile
make_build_args="USE_UPNP=yes"
makedepends="zlib-devel boost-devel openssl-devel miniupnpc-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PR PATCH] [Merged]: i2pd: increase open files limit
2022-10-28 15:43 [PR PATCH] i2pd: increase open files limit steinex
@ 2022-11-04 18:41 ` paper42
0 siblings, 0 replies; 2+ messages in thread
From: paper42 @ 2022-11-04 18:41 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1293 bytes --]
There's a merged pull request on the void-packages repository
i2pd: increase open files limit
https://github.com/void-linux/void-packages/pull/40206
Description:
To run i2pd as a "floodfill" (special mode which contributes to the network more) we need a higher open files limit. 8192 is recommended by upstream but let's just double it to be on the safe side.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-04 18:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-28 15:43 [PR PATCH] i2pd: increase open files limit steinex
2022-11-04 18:41 ` [PR PATCH] [Merged]: " paper42
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).