Commit aa902fc2 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Look for ETIMEDOUT from connect(), in addition to ECONNREFUSED.

Not perfect, as it takes about 30 seconds to timeout. Need to add
a timer to it.
parent a24591db
/*
* EMULAB-COPYRIGHT
* Copyright (c) 2000-2003 University of Utah and the Flux Group.
* Copyright (c) 2000-2004 University of Utah and the Flux Group.
* All rights reserved.
*/
......@@ -191,7 +191,7 @@ dotcp(barrier_req_t *barrier_reqp, struct in_addr serverip, int portnum)
sizeof(name)) == 0) {
break;
}
if (errno != ECONNREFUSED) {
if (errno != ECONNREFUSED && errno != ETIMEDOUT) {
perror("connecting stream socket");
close(sock);
return -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment