From: "cron2 (Code Review)" Date: Fri, 4 Oct 2024 07:09:11 +0000 References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <9da209bed85d709b06f7bb579e65937db12a86aa-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="hxhoOXYyMNk="; 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 --hxhoOXYyMNk= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. Hello plaisthos, flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/777?usp=3Demail to review the following change. 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/1 diff --git a/tests/t_server_null_server.sh b/tests/t_server_null_server.sh index 10bb44b..bcbd002 100755 --- a/tests/t_server_null_server.sh +++ b/tests/t_server_null_server.sh @@ -8,6 +8,10 @@ status=3D"${server_name}.status" pid=3D"${server_name}.pid" + # 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 rm -f "${status}" "${log}" "${pid}" "${server_exec}" \ -- 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: 1 Gerrit-Owner: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-MessageType: newchange --hxhoOXYyMNk= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos.

cron2 would like plaisthos and flichtenheld to review t= his change.

Vi= ew Change

t_server_null: run server processes with 'ulimit -t 300&#=
39;

"ulimit -t" will hard limit the usable CPU time for an= y process started
to the specified number of seconds. So if we have a s= tuck-and-looping
server process (which was observed frequently) this wil= l make sure
the situation will fix itself eventually.

Change-Id: = I7e5ac9b4a8594251c3b5c4655f9d74b021950098
---
M tests/t_server_null_s= erver.sh
1 file changed, 4 insertions(+), 0 deletions(-)

git p= ull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/77/777/1
di=
ff --git a/tests/t_server_null_server.sh b/tests/t_server_null_server.sh
index 10bb44b..bcbd002 100755
--- a/tests/t_s= erver_null_server.sh
+++ b/tests/t_server_null_server.sh
@@ -8,6 +8,10 @@
status=3D"${server= _name}.status"
pid=3D"${server_name}.pid&quo= t;

= + # limit CPU time of processes to "5 minutes"
+ # (so a stuck-and-looping proce= ss will auto-terminate)

+ ulimit -t 300
+
if [ -z "${RUN_SUDO}" ]; then
<= span> rm -f "${status}" "${log}" "${pid}&q= uot;

"${server_exec}" \
=

To view, visit change 777. To unsubscribe, or for help writi= ng mail filters, visit setti= ngs.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I7e5ac9b4a8594251c3b5c4655f9= d74b021950098
Gerrit-Change-Number: 777
Gerrit-PatchSet: 1
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: newchange
--hxhoOXYyMNk=--