DTLSv1_listen Nonblock IO failure not returning SSL_ERROR_WANT_READ

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

DTLSv1_listen Nonblock IO failure not returning SSL_ERROR_WANT_READ

Raja Ashok-2
Hi,

When Nonblock IO failure happens on DTLSv1_listen() its returning 0. But SSL_get_error() is not returning SSL_ERROR_WANT_READ. Instead it returns SSL_ERROR_SYSCALL. 

Can someone tell its intentionally kept this behaviour ?

Thanks & Regards,
Ashok,
Huawei Technologies, India
Reply | Threaded
Open this post in threaded view
|

Re: DTLSv1_listen Nonblock IO failure not returning SSL_ERROR_WANT_READ

Matt Caswell-2


On 06/03/2019 10:51, Raja Ashok wrote:
> Hi,
>
> When Nonblock IO failure happens on DTLSv1_listen() its returning 0. But
> SSL_get_error() is not returning SSL_ERROR_WANT_READ. Instead it
> returns SSL_ERROR_SYSCALL. 
>
> Can someone tell its intentionally kept this behaviour ?

You are not supposed to call SSL_get_error() after DTLSv1_listen().

See the DTLSv1_listen() documentation here:

https://www.openssl.org/docs/man1.1.1/man3/DTLSv1_listen.html

Matt