Browse Source

Merge pull request #898 from jl777/jl777

10 seconds connect
pass-iguana-arg
jl777 7 years ago
committed by GitHub
parent
commit
eedd8e5e3a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      iguana/exchanges/LP_socket.c

2
iguana/exchanges/LP_socket.c

@ -78,7 +78,7 @@ int32_t komodo_connect(int32_t sock,struct sockaddr *saddr,socklen_t addrlen)
FD_SET(sock,&wfd);
FD_ZERO(&efd);
FD_SET(sock,&efd);
tv.tv_sec = 5;
tv.tv_sec = 10;
tv.tv_usec = 0;
res = select(sock+1,NULL,&wfd,&efd,&tv);
if ( res == -1 ) // select failed, do something...

Loading…
Cancel
Save