agent: implement connection loop with retry
This commit is contained in:
@@ -49,7 +49,6 @@ int connect_to_rmps(const char *hostname, int port)
|
||||
addr.sin_addr.s_addr = *(long*)(host->h_addr);
|
||||
if (connect(sd, (struct sockaddr*)&addr, sizeof(addr)) == FAIL) {
|
||||
close(sd);
|
||||
perror(hostname);
|
||||
return 0;
|
||||
}
|
||||
return sd;
|
||||
|
||||
Reference in New Issue
Block a user