<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hello, colleagues!</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I suppose there is a memory leak on stunnel reconfiguration when it receives the SIGHUP signal. Here is my experiment with stunnel 5.05 on linux:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>~/busybox $ cat /home/posdebug/stunnel.cfg </div><div>debug=6</div><div>options=NO_SSLv2</div><div>pid=/tmp/stunnel.pid</div><div>[57797]</div><div>accept = <a href="http://127.0.0.1:57797/" target="_blank">127.0.0.1:57797</a></div><div>connect = <a href="http://80.90.125.219:64141/" target="_blank">80.90.125.219:64141</a></div><div>key = /usr/unsign/key.pem</div><div>cert = /usr/unsign/cert.pem</div><div>CAfile = /usr/unsign/cert.pem</div><div>verify = 2</div><div>ciphers = AES128-SHA:AES256-SHA:DES-CBC3-SHA:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA:EDH-RSA-DES-CBC3-SHA</div><div>sslVersion = all</div><div>TIMEOUTbusy = 100</div><div>TIMEOUTconnect = 100</div><div>client = yes</div><div>~/busybox $ /usr/postunnel/stunnel /home/posdebug/stunnel.cfg </div><div>~/busybox $ top | grep stunnel</div><div> 986 1 posdebug S <b>3592</b> 5.7 0 0.0 /usr/postunnel/stunnel /home/posdebug/stunnel.cfg</div><div>~/busybox $ kill -1 986</div><div>~/busybox $ kill -1 986</div><div>~/busybox $ kill -1 986</div><div>~/busybox $ kill -1 986</div><div>~/busybox $ kill -1 986</div><div>~/busybox $ top | grep stunnel</div><div> 986 1 posdebug S <b>3720</b> 5.9 0 0.0 /usr/postunnel/stunnel /home/posdebug/stunnel.cfg</div><div>~/busybox $ kill -1 986</div><div>~/busybox $ kill -1 986</div><div>~/busybox $ kill -1 986</div><div>~/busybox $ kill -1 986</div><div><div>~/busybox $ top | grep stunnel</div><div> 986 1 posdebug S <b>3848</b> 6.2 0 0.0 /usr/postunnel/stunnel /home/posdebug/stunnel.cfg</div></div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">As i noticed, there are a lot of allocs on reconfiguration and only a few free() calls. Why? RAM is not unlimited, as far as i know.</div><div style="font-family:arial,sans-serif;font-size:13px">Any comments would be highly appreciated.</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Best regards</div><div>Alexander Paramonov</div><div>Software Engineer</div><div>Terminal Technologies</div></div></div>
</div>