Commit d6e03b70 authored by Matt Caswell's avatar Matt Caswell
Browse files

Don't use select on Windows



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

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent 505f74ca
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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
}