summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2012-02-19 10:43:28 -0800
committerRuss Allbery <rra@stanford.edu>2012-02-19 10:43:28 -0800
commite359d9e9c343dc1344aa87306a02616b8bbf58b2 (patch)
treecb2e6071a8291f2b164e8c47f263cc396588259c /client
parent58dc79b9ad6c79ab05bb935e478602c1b7e1eb97 (diff)
Also apply the network timeout to the initial connection
Change-Id: I0b2cfc335f705e93724d475be3791242d45f43a6
Diffstat (limited to 'client')
-rw-r--r--client/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/open.c b/client/open.c
index 47679f3..1df39cf 100644
--- a/client/open.c
+++ b/client/open.c
@@ -56,7 +56,7 @@ internal_connect(struct remctl *r, const char *host, unsigned short port)
gai_strerror(status));
return INVALID_SOCKET;
}
- fd = network_connect(ai, r->source, 0);
+ fd = network_connect(ai, r->source, r->timeout);
freeaddrinfo(ai);
if (fd == INVALID_SOCKET) {
internal_set_error(r, "cannot connect to %s (port %hu): %s", host,