From: "cron2 (Code Review)" Date: Sun, 3 Nov 2024 20:19:01 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="nZtxW8mYJ4w="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: t_server_null: run server processes with 'ulimit -t 300' List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , flichtenheld Cc: openvpn-devel --nZtxW8mYJ4w= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. Hello flichtenheld, plaisthos, I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/777?usp=3Demail to look at the new patch set (#2). Change subject: t_server_null: run server processes with 'ulimit -t 300' ...................................................................... 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 specified number of seconds. So if we have a stuck-and-looping server process (which was observed frequently) this will make sure the situation will fix itself eventually. Change-Id: I7e5ac9b4a8594251c3b5c4655f9d74b021950098 --- M tests/t_server_null_server.sh 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/77/777/2 diff --git a/tests/t_server_null_server.sh b/tests/t_server_null_server.sh index acf8479..40ce94b 100755 --- a/tests/t_server_null_server.sh +++ b/tests/t_server_null_server.sh @@ -11,6 +11,10 @@ # Allow reading this file even umask values are strict touch "$log" + # limit CPU time of processes to "5 minutes" + # (so a stuck-and-looping process will auto-terminate) + ulimit -t 300 + if [ -z "${RUN_SUDO}" ]; then "${server_exec}" \ $server_conf \ -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/777?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I7e5ac9b4a8594251c3b5c4655f9d74b021950098 Gerrit-Change-Number: 777 Gerrit-PatchSet: 2 Gerrit-Owner: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-MessageType: newpatchset --nZtxW8mYJ4w= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos.

cron2 uploaded patch set #2 to this change.

View Change

git pull ssh://ge=
rrit.openvpn.net:29418/openvpn refs/changes/77/777/2
diff --git a/t=
ests/t_server_null_server.sh b/tests/t_server_null_server.sh
index acf8479..40ce94b 100755
--- a/tests/t_server_null_s= erver.sh
+++ b/tests/t_server_null_server.sh
@@ -11,6 +11,10 @@
# Allow reading this file even um= ask values are strict
touch "$log"
+ # limit= CPU time of processes to "5 minutes"
+ # (so a stuck-and-looping process will auto= -terminate)
+ ulim= it -t 300
+ if [ -z "${RUN_SUDO}" ]; then
= "${server_exec}" \
$server_conf \

To view, visit change 777. To unsubscribe, or f= or help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I7e5ac9b4a8594251c3b5c4655f9= d74b021950098
Gerrit-Change-Number: 777
Gerrit-PatchSet: 2
Gerrit-Owner: cron2 <gert@...1296...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newpatchset
--nZtxW8mYJ4w=--