Skip to main content

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

On 2016/10/12 19:41, Roger Light wrote:
> 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.

so the connection will surely fail if SSL connection does not complete 
immediately after socket connection?  Is this a problem of the server 
side or the client side?  How to avoid it?

Thanks
Khitai

> Cheers,
>
> Roger
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev



Back to the top