[XS] Change in openvpn[master]: t_server_null: run server processes with 'ulimit -t 300'

"cron2 \(Code Review\) via Openvpn-devel" <[email protected]> Fri, 31 Jul 2026 10:06:07 +0000
Newsgroups gmane.network.openvpn.devel
Message-ID <[email protected]>
--===============7553737712200494016==
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="kRSSdKkywuE="; charset=UTF-8

--kRSSdKkywuE=
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

cron2 has submitted this change=2E ( http://gerrit=2Eopenvpn=2Enet/c/openvp=
n/+/777?usp=3Demail )

Change subject: t_server_null: run server processes =
with 'ulimit -t 300'
=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=
=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=
=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=
=2E=2E

t_server_null: run server processes with 'ulimit -t 300'

"ulimit -=
t" will hard limit the usable CPU time for any process started
to the speci=
fied number of seconds=2E  So if we have a stuck-and-looping
server process=
 (which was observed frequently) this will make sure
the situation will fix=
 itself eventually=2E

Change-Id: I7e5ac9b4a8594251c3b5c4655f9d74b021950098=

Signed-off-by: Gert Doering <gert@greenie=2Emuc=2Ede>
Acked-by: Arne Schwa=
be <arne-openvpn@rfc2549=2Eorg>
Gerrit URL: https://gerrit=2Eopenvpn=2Enet/=
c/openvpn/+/777
Message-Id: <20260730204642=2E27250-1-gert@greenie=2Emuc=2E=
de>
URL: https://www=2Email-archive=2Ecom/openvpn-devel@lists=2Esourceforge=
=2Enet/msg38088=2Ehtml
Signed-off-by: Gert Doering <gert@greenie=2Emuc=2Ede=
>
---
M tests/t_server_null_server=2Esh
1 file changed, 4 insertions(+), 0 =
deletions(-)




diff --git a/tests/t_server_null_server=2Esh b/tests/t_ser=
ver_null_server=2Esh
index 65b7d56=2E=2Ee1775f0 100755
--- a/tests/t_server=
_null_server=2Esh
+++ b/tests/t_server_null_server=2Esh
@@ -11,6 +11,10 @@
=
     # Allow reading this file even umask values are strict
     touch "$lo=
g"
 
+    # limit CPU time of processes to "5 minutes"
+    # (so a stuck-a=
nd-looping process will auto-terminate)
+    ulimit -t 300
+
     # Try to =
launch the server
     $RUN_SUDO "${server_exec}" \
                $server=
_conf \

-- 
To view, visit http://gerrit=2Eopenvpn=2Enet/c/openvpn/+/777?u=
sp=3Demail
To unsubscribe, or for help writing mail filters, visit http://g=
errit=2Eopenvpn=2Enet/settings?usp=3Demail

Gerrit-MessageType: merged
Gerr=
it-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I7e5ac9b4a85942=
51c3b5c4655f9d74b021950098
Gerrit-Change-Number: 777
Gerrit-PatchSet: 3
Ger=
rit-Owner: cron2 <gert@greenie=2Emuc=2Ede>
Gerrit-Reviewer: flichtenheld <f=
rank@lichtenheld=2Ecom>
Gerrit-Reviewer: plaisthos <arne-openvpn@rfc2549=2E=
org>
Gerrit-CC: openvpn-devel <openvpn-devel@lists=2Esourceforge=2Enet>

--kRSSdKkywuE=
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html><html><head><style></style></head><body><p>cron2 <strong>sub=
mitted</strong> this change=2E</p><p><a href=3D"http://gerrit=2Eopenvpn=2En=
et/c/openvpn/+/777?usp=3Demail">View Change</a></p><div style=3D"white-spac=
e:pre-wrap"></div><pre class=3D"blocks" style=3D"font-family: monospace,mon=
ospace; white-space: pre-wrap;">t_server_null: run server processes with &#=
39;ulimit -t 300&#39;<br><br>&quot;ulimit -t&quot; will hard limit the usab=
le CPU time for any process started<br>to the specified number of seconds=
=2E  So if we have a stuck-and-looping<br>server process (which was observe=
d frequently) this will make sure<br>the situation will fix itself eventual=
ly=2E<br><br>Change-Id: I7e5ac9b4a8594251c3b5c4655f9d74b021950098<br>Signed=
-off-by: Gert Doering &lt;gert@greenie=2Emuc=2Ede&gt;<br>Acked-by: Arne Sch=
wabe &lt;arne-openvpn@rfc2549=2Eorg&gt;<br>Gerrit URL: https://gerrit=2Eope=
nvpn=2Enet/c/openvpn/+/777<br>Message-Id: &lt;20260730204642=2E27250-1-gert=
@greenie=2Emuc=2Ede&gt;<br>URL: https://www=2Email-archive=2Ecom/openvpn-de=
vel@lists=2Esourceforge=2Enet/msg38088=2Ehtml<br>Signed-off-by: Gert Doerin=
g &lt;gert@greenie=2Emuc=2Ede&gt;<br>---<br>M tests/t_server_null_server=2E=
sh<br>1 file changed, 4 insertions(+), 0 deletions(-)<br><br></pre>
<pre st=
yle=3D"font-family: monospace,monospace; white-space: pre-wrap;"><span>diff=
 --git a/tests/t_server_null_server=2Esh b/tests/t_server_null_server=2Esh<=
/span><br><span>index 65b7d56=2E=2Ee1775f0 100755</span><br><span>--- a/tes=
ts/t_server_null_server=2Esh</span><br><span>+++ b/tests/t_server_null_serv=
er=2Esh</span><br><span>@@ -11,6 +11,10 @@</span><br><span>     # Allow rea=
ding this file even umask values are strict</span><br><span>     touch &quo=
t;$log&quot;</span><br><span> </span><br><span style=3D"color: hsl(120, 100=
%, 40%);">+    # limit CPU time of processes to &quot;5 minutes&quot;</span=
><br><span style=3D"color: hsl(120, 100%, 40%);">+    # (so a stuck-and-loo=
ping process will auto-terminate)</span><br><span style=3D"color: hsl(120, =
100%, 40%);">+    ulimit -t 300</span><br><span style=3D"color: hsl(120, 10=
0%, 40%);">+</span><br><span>     # Try to launch the server</span><br><spa=
n>     $RUN_SUDO &quot;${server_exec}&quot; \</span><br><span>             =
   $server_conf \</span><br><span></span><br></pre><p>To view, visit <a hre=
f=3D"http://gerrit=2Eopenvpn=2Enet/c/openvpn/+/777?usp=3Demail">change 777<=
/a>=2E To unsubscribe, or for help writing mail filters, visit <a href=3D"h=
ttp://gerrit=2Eopenvpn=2Enet/settings?usp=3Demail">settings</a>=2E</p><div =
itemscope itemtype=3D"http://schema=2Eorg/EmailMessage"><div itemscope item=
prop=3D"action" itemtype=3D"http://schema=2Eorg/ViewAction"><link itemprop=
=3D"url" href=3D"http://gerrit=2Eopenvpn=2Enet/c/openvpn/+/777?usp=3Demail"=
/><meta itemprop=3D"name" content=3D"View Change"/></div></div>

<div style=
=3D"display:none"> Gerrit-MessageType: merged </div>
<div style=3D"display:=
none"> Gerrit-Project: openvpn </div>
<div style=3D"display:none"> Gerrit-B=
ranch: master </div>
<div style=3D"display:none"> Gerrit-Change-Id: I7e5ac9=
b4a8594251c3b5c4655f9d74b021950098 </div>
<div style=3D"display:none"> Gerr=
it-Change-Number: 777 </div>
<div style=3D"display:none"> Gerrit-PatchSet: =
3 </div>
<div style=3D"display:none"> Gerrit-Owner: cron2 &lt;gert@greenie=
=2Emuc=2Ede&gt; </div>
<div style=3D"display:none"> Gerrit-Reviewer: flicht=
enheld &lt;frank@lichtenheld=2Ecom&gt; </div>
<div style=3D"display:none"> =
Gerrit-Reviewer: plaisthos &lt;arne-openvpn@rfc2549=2Eorg&gt; </div>
<div s=
tyle=3D"display:none"> Gerrit-CC: openvpn-devel &lt;openvpn-devel@lists=2Es=
ourceforge=2Enet&gt; </div>

</body></html>
--kRSSdKkywuE=--


--===============7553737712200494016==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============7553737712200494016==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

--===============7553737712200494016==--