int pret;
memset(&p, 0, sizeof(p));
p.fd = c->fd;
- p.events = POLLOUT | POLLERR | POLLHUP;
+ p.events = POLLOUT | POLLERR
+#ifndef USE_WINSOCK
+ | POLLHUP
+#endif
+ ;
# ifndef USE_WINSOCK
pret = poll(&p, 1, SEND_BLOCKED_WAIT_TIMEOUT);
# else
#ifndef USE_WINSOCK
pret = poll(NULL, 0, (SEND_BLOCKED_WAIT_TIMEOUT/10)<<(retries+1));
#else
- pret = WSAPoll(NULL, 0, (SEND_BLOCKED_WAIT_TIMEOUT/10)<<(retries+1));
+ Sleep((SEND_BLOCKED_WAIT_TIMEOUT/10)<<(retries+1));
+ pret = 0;
#endif
if(pret < 0 &&
#ifndef USE_WINSOCK
int pret;
memset(&p, 0, sizeof(p));
p.fd = c->fd;
- p.events = POLLOUT | POLLERR | POLLHUP;
+ p.events = POLLOUT | POLLERR
+#ifndef USE_WINSOCK
+ | POLLHUP
+#endif
+ ;
# ifndef USE_WINSOCK
pret = poll(&p, 1, SEND_BLOCKED_WAIT_TIMEOUT);
# else
#ifndef USE_WINSOCK
pret = poll(NULL, 0, (SEND_BLOCKED_WAIT_TIMEOUT/10)<<(retries+1));
#else
- pret = WSAPoll(NULL, 0, (SEND_BLOCKED_WAIT_TIMEOUT/10)<<(retries+1));
+ Sleep((SEND_BLOCKED_WAIT_TIMEOUT/10)<<(retries+1));
+ pret = 0;
#endif
if(pret < 0 &&
#ifndef USE_WINSOCK