<div dir="ltr">Hello,<div><br></div><div>I have been testing if sending sighup to stunnel has adverse effects on existing connections (in fork mode, v5.19). I have found new connections may fail to complete. </div><div><br></div><div>In real world scenarios it is not a big issue. First you will reload only once. Second, you will probably do it during slow hours. Chances to impact someone are very low.</div><div><br></div><div>In any case, I wanted to understand the circumstances leading to failed connections.  </div><div><br></div><div>My test is simple. I try to establish 10 connections at 1 second interval. At the same time, I generate a lot of sighup signals. At least one connection fails every time. </div><div><br></div><div>Even with debug turned on, I can't find any indication of failed connections in stunnel log.<br></div><div><br></div><div>But the real mystery is this. If I run a tcp capture, I will see established connections.</div><div><br></div><div><div><div>     29 2016-02-10 12:07:14.304987 0.000000    142.168.148.114       142.168.66.111        TCP      66     56572→4443 [SYN] Seq=0 Win=8192 Len=0 MSS=1260 WS=256 SACK_PERM=1</div><div>     30 2016-02-10 12:07:14.305001 0.000014    142.168.66.111        142.168.148.114       TCP      66     4443→56572 [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1460 SACK_PERM=1 WS=128</div><div>     31 2016-02-10 12:07:14.312908 0.007907    142.168.148.114       142.168.66.111        TCP      60     56572→4443 [ACK] Seq=1 Ack=1 Win=66560 Len=0</div><div>     32 2016-02-10 12:07:14.312918 0.000010    142.168.66.111        142.168.148.114       TCP      54     4443→56572 [RST] Seq=1 Win=0 Len=0</div><div>     33 2016-02-10 12:07:14.313097 0.000179    142.168.148.114       142.168.66.111        SSL      371    Client Hello</div><div>     34 2016-02-10 12:07:14.313102 0.000005    142.168.66.111        142.168.148.114       TCP      54     4443→56572 [RST] Seq=1 Win=0 Len=0</div></div></div><div><br></div><div>How could a tcp connection be established and yet find no indication of that in stunnel.log? <br></div><div><br></div><div>Thanks!</div><div><br></div><div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Philippe Anctil</div></div>
</div></div>