Loading tests/server/sockfilt.c +11 −4 Original line number Diff line number Diff line Loading @@ -288,10 +288,17 @@ static int juggle(curl_socket_t *sockfdp, case PASSIVE_CONNECT: sockfd = *sockfdp; if(-1 == sockfd) { /* eeek, we are supposedly connected and then this cannot be -1 ! */ logmsg("socket is -1! on %s:%d", __FILE__, __LINE__); return FALSE; } else { logmsg("waiting for data from client on socket %d", (int)sockfd); /* there's always a socket to wait for */ FD_SET(sockfd, &fds_read); maxfd = sockfd; } break; case ACTIVE: Loading Loading
tests/server/sockfilt.c +11 −4 Original line number Diff line number Diff line Loading @@ -288,10 +288,17 @@ static int juggle(curl_socket_t *sockfdp, case PASSIVE_CONNECT: sockfd = *sockfdp; if(-1 == sockfd) { /* eeek, we are supposedly connected and then this cannot be -1 ! */ logmsg("socket is -1! on %s:%d", __FILE__, __LINE__); return FALSE; } else { logmsg("waiting for data from client on socket %d", (int)sockfd); /* there's always a socket to wait for */ FD_SET(sockfd, &fds_read); maxfd = sockfd; } break; case ACTIVE: Loading