Differences From Artifact [f571eba5d2]:
- File src/http_socket.c — part of check-in [9bc7041ae7] at 2015-01-27 16:21:55 on branch trunk — Alternative fix for the SSH remote-host problem for which Andy Bradford supplies a patch at [52f08008e2]: Continue to provide a numeric IP address, but try to get the IPv6 address if it is available, and always include the hostname in g.zIpAddr regardless of whether or not an IP address was found. (user: drh size: 6506) [more...]
To Artifact [49403e7633]:
- File src/http_socket.c — part of check-in [aee65577cb] at 2015-02-08 22:26:18 on branch trunk — Fix the socket_open() routine so that it returns a non-zero error code if it fails to connect. (user: drh size: 6518) [more...]
| ︙ | ︙ | |||
171 172 173 174 175 176 177 178 179 180 181 182 183 184 |
}
g.zIpAddr = mprintf("%s", zRemote);
break;
}
if( p==0 ){
socket_set_errmsg("cannot connect to host %s:%d", pUrlData->name,
pUrlData->port);
}
#if !defined(_WIN32)
signal(SIGPIPE, SIG_IGN);
#endif
end_socket_open:
if( rc && iSocket>=0 ) socket_close();
if( ai ) freeaddrinfo(ai);
| > | 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 |
}
g.zIpAddr = mprintf("%s", zRemote);
break;
}
if( p==0 ){
socket_set_errmsg("cannot connect to host %s:%d", pUrlData->name,
pUrlData->port);
rc = 1;
}
#if !defined(_WIN32)
signal(SIGPIPE, SIG_IGN);
#endif
end_socket_open:
if( rc && iSocket>=0 ) socket_close();
if( ai ) freeaddrinfo(ai);
|
| ︙ | ︙ |