Fix intermittent Cygwin failures in s_client
authorRichard Levitte <levitte@openssl.org>
Sun, 14 Jan 2018 16:15:32 +0000 (17:15 +0100)
committerRichard Levitte <levitte@openssl.org>
Sun, 14 Jan 2018 21:13:39 +0000 (22:13 +0100)
commit27da42d85212f80fc0db02b1cedf1d49fbfb8c43
tree9be1343b4a23d62367442930bbc806c43498dab8
parent803141f6100ca8d756928328a262e1dc52daef2d
Fix intermittent Cygwin failures in s_client

This was identified for Windows almost two years ago for VC and
msys/mingw.  It seems that Cygwin suffers from the same issue, and
since Cygwin doesn't define OPENSSL_SYS_WINDOWS, we need to make a
special case to have a 50ms pause before closing the TLS connection.

Ref: git commit cb2e10f257a464c6b475b321dd9e4769df84dbf6

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/5074)
apps/s_client.c