<div dir="ltr">Hello<div><br></div><div>I'm trying to pass the configuration file with option fd.</div><div>However, I get the following errors when I do :</div><div><br></div><div>echo my configuration | stunnel -fd 0</div>
<div><br></div><div>This is not related to echo since I get the same errors with:</div><div><br></div><div>cat conf | stunnel -fd 0</div><div><br></div><div>stunnel is just filling my logs with :</div><div><br></div><div>
2014-07-13 6:48:46.675 PM stunnel[1959]: LOG3[140735238959888]: local socket: Socket operation on non-socket (38)</div><div>2014-07-13 6:48:46.676 PM stunnel[1959]: LOG3[140735238959888]: local socket: Socket operation on non-socket (38)</div>
<div>(...)</div><div><br></div><div>stunnel ./conf works fine</div><div><br></div><div>I found a reference to a bug that caused this same error message on OSX when run in inetd mode, but nothing else. Any help is appreciated</div>
<div><br></div><div>I'm using stunnel 5.02 on x86_64-apple-darwin13.2.0 platform with the following in -sockets:</div><div>
<p class="">Socket option defaults:</p>
<p class=""> Option Name | Accept | Local | Remote |OS default</p>
<p class=""> ----------------+----------+----------+----------+----------</p>
<p class=""> SO_DEBUG | -- | -- | -- | no</p>
<p class=""> SO_DONTROUTE | -- | -- | -- | no</p>
<p class=""> SO_KEEPALIVE | -- | -- | -- | no</p>
<p class=""> SO_LINGER | -- | -- | -- | 0:0</p>
<p class=""> SO_OOBINLINE | -- | -- | -- | no</p>
<p class=""> SO_RCVBUF | -- | -- | -- | 131072</p>
<p class=""> SO_SNDBUF | -- | -- | -- | 131072</p>
<p class=""> SO_RCVLOWAT | -- | -- | -- | 1</p>
<p class=""> SO_SNDLOWAT | -- | -- | -- | 2048</p>
<p class=""> SO_RCVTIMEO | -- | -- | -- | 0:0</p>
<p class=""> SO_SNDTIMEO | -- | -- | -- | 0:0</p>
<p class=""> SO_REUSEADDR | yes| -- | -- | no</p>
<p class=""> TCP_KEEPCNT | -- | -- | -- |write-only</p>
<p class=""> TCP_KEEPINTVL | -- | -- | -- |write-only</p>
<p class=""> IP_TOS | -- | -- | -- | 0</p>
<p class=""> IP_TTL | -- | -- | -- | 64</p>
<p class=""> TCP_NODELAY | -- | yes| yes| no</p><p class=""><br></p><p class="">My configuration is quite simple : I just echo</p><p class="">CAfile=/path/to/file.pem</p><p class="">verify = 3</p>
<p class="">fips = no</p><p class="">options = NO_SSLv2</p><p class="">debug = 7</p><p class="">[test]</p><p class="">client = yes</p><p class="">accept = <a href="http://127.0.0.1:4443">127.0.0.1:4443</a></p><p class="">
connect = remoteip:443</p></div>
</div>