Honour the claim from documentation: When not set (the default), the system default is left alone.

This commit is contained in:
Willem Toorop 2021-05-26 15:57:52 +02:00
parent 515127289c
commit 624f688967
1 changed files with 2 additions and 1 deletions

View File

@ -487,7 +487,8 @@ tcp_connect(getdns_upstream *upstream, getdns_transport_list_t transport,
return -1;
getdns_sock_nonblock(fd);
getdns_sock_tcp_send_timeout(upstream, fd, send_timeout);
if (send_timeout != -1)
getdns_sock_tcp_send_timeout(upstream, fd, send_timeout);
#ifdef USE_OSX_TCP_FASTOPEN
sa_endpoints_t endpoints;
endpoints.sae_srcif = 0;