mirror of https://github.com/getdnsapi/getdns.git
Observe blocking flag in select run_once.
Currently run_once always blocks.
This commit is contained in:
parent
3f9e0f9671
commit
8a95f3d279
|
@ -244,7 +244,7 @@ select_eventloop_run_once(getdns_eventloop *loop, int blocking)
|
|||
} else {
|
||||
#endif
|
||||
if (select(max_fd + 1, &readfds, &writefds, NULL,
|
||||
(timeout == TIMEOUT_FOREVER ? NULL : &tv)) < 0) {
|
||||
((blocking && timeout == TIMEOUT_FOREVER) ? NULL : &tv)) < 0) {
|
||||
if (_getdns_socketerror_wants_retry())
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue