|
|
@ -410,7 +410,7 @@ int connect_socket(char *url, char *port) |
|
|
|
* we can connect to quickly. */ |
|
|
|
* we can connect to quickly. */ |
|
|
|
noblock_socket(sockd); |
|
|
|
noblock_socket(sockd); |
|
|
|
if (connect(sockd, p->ai_addr, p->ai_addrlen) == -1) { |
|
|
|
if (connect(sockd, p->ai_addr, p->ai_addrlen) == -1) { |
|
|
|
struct timeval tv_timeout = {1, 0}; |
|
|
|
struct timeval tv_timeout = {5, 0}; |
|
|
|
int selret; |
|
|
|
int selret; |
|
|
|
fd_set rw; |
|
|
|
fd_set rw; |
|
|
|
|
|
|
|
|
|
|
|