[openssl-users] Graceful shutdown of TLS connection for blocking sockets
Thomas J. Hruska
shinelight at shininglightpro.com
Mon Oct 9 14:43:17 UTC 2017
On 10/9/2017 7:29 AM, Jakob Bohm wrote:
> I suggest you find a good authoritative source for your claim
> that select() should not be used with blocking sockets.
"Under Linux, select() may report a socket file descriptor as "ready for
reading", while nevertheless a subsequent read blocks. This could for
example happen when data has arrived but upon examination has wrong
checksum and is discarded. There may be other circumstances in which a
file descriptor is spuriously reported as ready. Thus it may be safer
to use O_NONBLOCK on sockets that should not block."
Authoritative enough for you?
Shining Light Productions
Home of BMP2AVI and Win32 OpenSSL.
More information about the openssl-users