View | Details | Raw Unified | Return to bug 403901
Collapse All | Expand All

(-)a/hw/vnc/sockets.c (-3 / +3 lines)
Lines 448-454 WriteExact(sock, buf, len) Link Here
448
    int n;
448
    int n;
449
    fd_set fds;
449
    fd_set fds;
450
    struct timeval tv;
450
    struct timeval tv;
451
#if 0
451
#if 1
452
    int totalTimeWaited = 0;
452
    int totalTimeWaited = 0;
453
#endif
453
#endif
454
454
Lines 469-475 WriteExact(sock, buf, len) Link Here
469
		return n;
469
		return n;
470
	    }
470
	    }
471
471
472
#if 0
472
#if 1
473
	    /* Retry every 5 seconds until we exceed rfbMaxClientWait.  We
473
	    /* Retry every 5 seconds until we exceed rfbMaxClientWait.  We
474
	       need to do this because select doesn't necessarily return
474
	       need to do this because select doesn't necessarily return
475
	       immediately when the other end has gone away */
475
	       immediately when the other end has gone away */
Lines 487-493 WriteExact(sock, buf, len) Link Here
487
	    tv.tv_usec = 0;
487
	    tv.tv_usec = 0;
488
#endif
488
#endif
489
	    n = select(sock+1, NULL, &fds, NULL, &tv);
489
	    n = select(sock+1, NULL, &fds, NULL, &tv);
490
#if 0
490
#if 1
491
	    if (n < 0) {
491
	    if (n < 0) {
492
		rfbLogPerror("WriteExact: select");
492
		rfbLogPerror("WriteExact: select");
493
		return n;
493
		return n;

Return to bug 403901