Only set TCP_NODELAY if the protocol is TCP
authorMatt Caswell <matt@openssl.org>
Tue, 29 May 2018 14:58:47 +0000 (15:58 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 31 May 2018 09:39:13 +0000 (10:39 +0100)
commit6712ba9323cd9dc550ae3cc258cb61b5b23dcd83
treea4fcbca24f85aaf7cb322d8d7c8cf714cc0c2b5c
parentbceae201b45fdbc7898adada6aebe2a1b6145009
Only set TCP_NODELAY if the protocol is TCP

This doesn't apply if we're doing DTLS, or using UNIX domain sockets.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6373)
apps/s_socket.c