<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks Mike.  That's indeed was the solution.  I was using 4.32 and was able to get stunnel working by using --disable-libwrap.<div><br></div><div>When I moved to 4.38 or 4.39, I got a different error. When it connects to stunnel on the other end (server), the client reports a SSL3_GET_RECORD: wrong version error.  My config file did not specify the version (sslVersion is commented out).  I tried setting it to each of the values (<meta charset="utf-8"><span class="Apple-style-span" style="font-family: Times; ">SSLv2, SSLv3, TLSv1 and all</span>) but with no luck.  Since it was working in 4.32, I"m not sure if its a config problem or an issue with the code.  I'm comfortable using gdb to investigate but don't yet know enough about openssl.  Any thoughts? I've gone back to 4.32 so have a working solution but would be interested in investigating further.</div><div><br></div><div>Athir</div><div><br></div><div><br></div><div><div><div><div>On 2011-07-07, at 5:18 AM, Michal Trojnara wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Athir Nuaimi wrote:<br><blockquote type="cite">Hi there.  I've built stunnel on the Mac (including the patch for str.c)<br></blockquote><blockquote type="cite">and have problem when I run it.  Whenever it gets a request on one side<br></blockquote><blockquote type="cite">(from a browser), I see the following in the log.  The weird thing is<br></blockquote>that<br><blockquote type="cite">when I run stunnel in gdb it works?? <br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">2011.07.05 17:51:00 LOG7[6300:4297842688]: Service https started<br></blockquote><blockquote type="cite">2011.07.05 17:51:00 LOG7[6300:4297842688]: Option TCP_NODELAY set on<br></blockquote>local<br><blockquote type="cite">socket<br></blockquote><blockquote type="cite">2011.07.05 17:51:00 LOG7[6300:4297842688]: Waiting for a libwrap process<br></blockquote><blockquote type="cite">2011.07.05 17:51:00 LOG7[6300:4297842688]: Acquired libwrap process #0<br></blockquote><blockquote type="cite">2011.07.05 17:51:00 LOG3[6300:4297842688]: Unexpected socket close<br></blockquote><blockquote type="cite">(read_blocking)<br></blockquote><blockquote type="cite">2011.07.05 17:51:00 LOG5[6300:4297842688]: Connection reset: 0 bytes<br></blockquote>sent<br><blockquote type="cite">to SSL, 0 bytes sent to socket<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Any advice would be appreciated.<br></blockquote><br>There's something wrong with libwrap support.<br><br>You can just disable it with:<br>    libwrap = no<br>configuration option.<br><br>Mike<br>_______________________________________________<br>stunnel-users mailing list<br><a href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a><br>http://stunnel.mirt.net/mailman/listinfo/stunnel-users<br></div></blockquote></div><br></div></div></body></html>