Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] OpenSSL error

On Tue, Oct 11, 2016 at 11:30 AM, Khitai Pang <khitai.pang@xxxxxxxxxxx> wrote:

> And many of the times the client id in the following socket error log
> line is <unknown>.

This just means that the client hasn't sent a CONNECT message yet, so
the broker cannot know the client id.

> So calling SSL_pending() actually causes socket error and connection lost?

There is no way that the use of SSL_pending() is causing a disconnect.

I imagine that what is happening is that your socket connection
succeeds, but the SSL connection does not complete immediately. This
leads on to SSL_pending() being called. At the same time, your
connection must fail (or possibly have timed out) in order for the
Socket error to be generated.

Cheers,

Roger


Back to the top