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:
parent
505f74ca34
commit
d6e03b7077
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue