Bugzilla – Attachment #246901: Proposed fix. for bug #403901
int n;
fd_set fds;
struct timeval tv;
#if 0
#if 1
int totalTimeWaited = 0;
#endif
return n;
}
/* Retry every 5 seconds until we exceed rfbMaxClientWait. We
need to do this because select doesn't necessarily return
immediately when the other end has gone away */
tv.tv_usec = 0;
n = select(sock+1, NULL, &fds, NULL, &tv);
if (n < 0) {
rfbLogPerror("WriteExact: select");