@@ -442,7 +442,11 @@ comm_point_send_udp_msg(struct comm_point *c, sldns_buffer* packet,
442
442
int pret ;
443
443
memset (& p , 0 , sizeof (p ));
444
444
p .fd = c -> fd ;
445
- p .events = POLLOUT | POLLERR | POLLHUP ;
445
+ p .events = POLLOUT | POLLERR
446
+ #ifndef USE_WINSOCK
447
+ | POLLHUP
448
+ #endif
449
+ ;
446
450
# ifndef USE_WINSOCK
447
451
pret = poll (& p , 1 , SEND_BLOCKED_WAIT_TIMEOUT );
448
452
# else
@@ -496,7 +500,8 @@ comm_point_send_udp_msg(struct comm_point *c, sldns_buffer* packet,
496
500
#ifndef USE_WINSOCK
497
501
pret = poll (NULL , 0 , (SEND_BLOCKED_WAIT_TIMEOUT /10 )<<(retries + 1 ));
498
502
#else
499
- pret = WSAPoll (NULL , 0 , (SEND_BLOCKED_WAIT_TIMEOUT /10 )<<(retries + 1 ));
503
+ Sleep ((SEND_BLOCKED_WAIT_TIMEOUT /10 )<<(retries + 1 ));
504
+ pret = 0 ;
500
505
#endif
501
506
if (pret < 0 &&
502
507
#ifndef USE_WINSOCK
@@ -751,7 +756,11 @@ comm_point_send_udp_msg_if(struct comm_point *c, sldns_buffer* packet,
751
756
int pret ;
752
757
memset (& p , 0 , sizeof (p ));
753
758
p .fd = c -> fd ;
754
- p .events = POLLOUT | POLLERR | POLLHUP ;
759
+ p .events = POLLOUT | POLLERR
760
+ #ifndef USE_WINSOCK
761
+ | POLLHUP
762
+ #endif
763
+ ;
755
764
# ifndef USE_WINSOCK
756
765
pret = poll (& p , 1 , SEND_BLOCKED_WAIT_TIMEOUT );
757
766
# else
@@ -805,7 +814,8 @@ comm_point_send_udp_msg_if(struct comm_point *c, sldns_buffer* packet,
805
814
#ifndef USE_WINSOCK
806
815
pret = poll (NULL , 0 , (SEND_BLOCKED_WAIT_TIMEOUT /10 )<<(retries + 1 ));
807
816
#else
808
- pret = WSAPoll (NULL , 0 , (SEND_BLOCKED_WAIT_TIMEOUT /10 )<<(retries + 1 ));
817
+ Sleep ((SEND_BLOCKED_WAIT_TIMEOUT /10 )<<(retries + 1 ));
818
+ pret = 0 ;
809
819
#endif
810
820
if (pret < 0 &&
811
821
#ifndef USE_WINSOCK
0 commit comments