Browse Source

Merge pull request #892 from jl777/jl777

Jl777
pass-iguana-arg
jl777 7 years ago
committed by GitHub
parent
commit
77aca0a058
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      iguana/exchanges/LP_socket.c

6
iguana/exchanges/LP_socket.c

@ -90,7 +90,7 @@ int32_t komodo_connect(int32_t sock,struct sockaddr *saddr,socklen_t addrlen)
}
}
set_blocking_mode(sock,1);
return(sock);
return(0);
}
int32_t LP_socket(int32_t bindflag,char *hostname,uint16_t port)
@ -200,7 +200,7 @@ int32_t LP_socket(int32_t bindflag,char *hostname,uint16_t port)
timeout.tv_sec = 2;
timeout.tv_usec = 0;
setsockopt(sock,SOL_SOCKET,SO_RCVTIMEO,(void *)&timeout,sizeof(timeout));
if ( result != 0 )
/*if ( result != 0 )
{
if ( errno != ECONNRESET && errno != ENOTCONN && errno != ECONNREFUSED && errno != ETIMEDOUT && errno != EHOSTUNREACH )
{
@ -209,7 +209,7 @@ int32_t LP_socket(int32_t bindflag,char *hostname,uint16_t port)
if ( sock >= 0 )
closesocket(sock);
return(-1);
}
}*/
timeout.tv_sec = 10;
timeout.tv_usec = 0;
setsockopt(sock,SOL_SOCKET,SO_RCVTIMEO,(void *)&timeout,sizeof(timeout));

Loading…
Cancel
Save