Project

General

Profile

Bug #9356 ยป wait_connectable_infinite_loop_minimal_fix.diff

shugo (Shugo Maeda), 02/21/2014 01:00 PM

View differences:

ext/socket/init.c
364 364
	     */
365 365
	    if (ret < 0)
366 366
		break;
367
	    if (sockerr == 0)
368
		continue;	/* workaround for winsock */
367
	    if (sockerr == 0) {
368
		if (revents & RB_WAITFD_OUT)
369
		    break;
370
		else
371
		    continue;	/* workaround for winsock */
372
	    }
369 373

  
370 374
	    /* BSD and Linux use sockerr. */
371 375
	    errno = sockerr;