Skip to content
Snippets Groups Projects
Commit a37e0b4d authored by Moe Jette's avatar Moe Jette
Browse files

Change test from > to >= to avoid connect retries if PORT_RETRIES parameter

is zero.
parent daf344ce
No related branches found
No related tags found
No related merge requests found
...@@ -448,7 +448,7 @@ slurm_fd _slurm_open_stream(slurm_addr *addr) ...@@ -448,7 +448,7 @@ slurm_fd _slurm_open_stream(slurm_addr *addr)
rc = _slurm_connect(fd, (struct sockaddr const *)addr, sizeof(*addr)); rc = _slurm_connect(fd, (struct sockaddr const *)addr, sizeof(*addr));
if (rc >= 0) /* success */ if (rc >= 0) /* success */
break; break;
if ((errno != ECONNREFUSED) || (retry > PORT_RETRIES)) if ((errno != ECONNREFUSED) || (retry >= PORT_RETRIES))
goto error; goto error;
if ((_slurm_close_stream(fd) < 0) && (errno == EINTR)) if ((_slurm_close_stream(fd) < 0) && (errno == EINTR))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment