Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Tom L

Pages: [1]
1
Utilities / Re: controlling stunnel as if it were a daemon
« on: May 17, 2021, 06:34:48 pm »
What a community! Thank you all for sharing your ideas and teaching me new commands.
I now use a combination of pgmcntrl and the program object scheduler in ArcaOS to restart stunnel every couple of hours.

For whoever finds this post and wants to do something similar:

I am closing stunnel by sending it SIGINT...

Code: [Select]
c:\pgmcntrl\pgmcntrl /close /exename:stunnel.exe
...and then I'm immediately starting it in a new session thru...

Code: [Select]
start "stunnel" /PGM c:\stunnel\bin\stunnel.cmd

2
Utilities / Re: controlling stunnel as if it were a daemon
« on: May 17, 2021, 04:07:51 pm »
Thank you, Andreas, that looks very promising! I'll check that out and post back.

Neil, here you go. Domino runs on localhost:8443, stunnel listens on :443 and just passes requests to Domino.

--- cut ---
[https]
accept  = x.x.x.x:443
connect = 127.0.0.1:8443
cert = webcrt.pem
sslVersion = TLSv1.2
ciphers = ECDHE-ECDSA-AES128-GCM-SHA256
--- cut ---

3
Utilities / controlling stunnel as if it were a daemon
« on: May 17, 2021, 02:40:06 pm »
Hi guys, I have a serious issue on a production system, I would appreciate any help anyone can give.

I am using Paul's stunnel port on ArcaOS 5 to provide TLS to a http server. Everything works well, except, occasionally, CPU will spike to 100% and stunnel has to be restarted. Then things are fine again for a couple of hours. I tried newer versions of the stunnel port, but they only make it worse.

I will open a ticket with Paul, but I need a workaround. On OS/2, stunnel will not run as a daemon/service, so I presume I cannot assign a PID to it and then kill it at will. I am launching it like this: stunnel.exe stunnel.conf

Even with debug = 7 (highest), there is nothing in the log that would as much as hint at what might be turning stunnel into a CPU hog.  :(

Is there a way I could automate the restarts? What I am doing now is: log on thru VNC, click in the stunnel window, press Ctrl-C and run it again.

Meta:

ArcaOS 5.0.6 EN
stunnel 5.50 on i386-pc-os2-emx
Lotus Domino Go 4.6.2.5

Pages: [1]