Don't use select on Windows

Windows "select" only works for sockets so don't use it to wait for async.

Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
Matt Caswell 2016-04-20 12:56:54 +01:00
parent 505f74ca34
commit d6e03b7077

View file

@ -2621,6 +2621,8 @@ BIO *bio_open_default_quiet(const char *filename, char mode, int format)
void wait_for_async(SSL *s)
{
/* On Windows select only works for sockets, so we simply don't wait */
#ifndef OPENSSL_SYS_WINDOWS
int width = 0;
fd_set asyncfds;
OSSL_ASYNC_FD *fds;
@ -2644,4 +2646,5 @@ void wait_for_async(SSL *s)
fds++;
}
select(width, (void *)&asyncfds, NULL, NULL, NULL);
#endif
}