Cleanup the s_time command.
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 21 Mar 2018 15:23:57 +0000 (16:23 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 21 Mar 2018 15:23:57 +0000 (16:23 +0100)
commit0870c8ea93929d4e123d31805707a978bc39fdf0
tree18e7de7d60a215d722fb1839fbc865a2b6f7c576
parent693be9a2cb0fc79fe856259feea54772c18a3637
Cleanup the s_time command.

Various code-cleanups.
Use SSL_CTX_set_mode(ctx, SSL_MODE_AUTO_RETRY) insead of handling
SSL_ERROR_WANT_READ everywhere.
Turn off the linger option on connected sockets to avoid failure.
Add BIO_set_conn_mode(conn, BIO_SOCK_NODELAY) to improve thruput.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3952)
apps/s_time.c