<br><br><div class="gmail_quote">2011/3/26 Kostis Sagonas <span dir="ltr"><<a href="mailto:kostis@cs.ntua.gr">kostis@cs.ntua.gr</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5"><br></div></div>
You have not told us which Erlang/OTP version this is, so it's hard to tell you what's happening. The documentation you are pointing us at is for R14B02. Is your code also using the dialyzer of this version?<br>
<br>
In R14B02 the spec for this function (from the ssl.erl code) reads:<br>
<br>
    -spec ssl_accept(#sslsocket{} | port(), timeout()| [option()]) -><br>
                 ok | {ok, #sslsocket{}} | {error, reason()}.<br>
<br>
which makes me strongly suspect that this function has changed return values between Erlang/OTP versions (it was previously returning 'ok' and now it returns {'ok', #sslsocket{}}, or the other way around).<br>

<br>
My advice: if you are to be relying on the Erlang/OTP documentation on the web, use R14B02.<br><font color="#888888">
<br>
Kostis<br>
</font></blockquote></div><br>hi kostis,<br><br>i'm using R13B04, and i've built the .dialyzer_plt file against this version. to improve the compatibility with previous versions, i've therefore added:<br><br>
case ssl:ssl_accept(Sock, 60000) of<br>    ok -><br>        ...;<br>    {ok, NewSock} -><br>        ...;<br>    {error, _Reason} -><br>        ...<br>end<br><br>dialyzer is still complaining obviously since it is not waiting for an 'ok' match, however i know by empirical tests that it's the 'ok' being matched, not the '{ok, NewSock}', in R13B04.