Skip to content

Commit 6e3ff5e

Browse files
authored
Merge pull request #7131 from bosilca/fix/tcp_errors
Correctly report TCP connect errors.
2 parents 631a435 + 4765627 commit 6e3ff5e

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

opal/mca/btl/tcp/btl_tcp_endpoint.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ static int mca_btl_tcp_endpoint_complete_connect(mca_btl_base_endpoint_t* btl_en
848848
opal_show_help("help-mpi-btl-tcp.txt", "client connect fail",
849849
true, opal_process_info.nodename,
850850
getpid(), msg,
851-
strerror(opal_socket_errno), opal_socket_errno);
851+
strerror(so_error), so_error);
852852
free(msg);
853853
mca_btl_tcp_endpoint_close(btl_endpoint);
854854
return OPAL_ERROR;

opal/mca/btl/tcp/btl_tcp_proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ mca_btl_tcp_proc_t* mca_btl_tcp_proc_lookup(const opal_process_name_t *name)
826826
mca_btl_base_endpoint_t *endpoint;
827827
opal_proc_t *opal_proc;
828828

829-
BTL_VERBOSE(("adding tcp proc for unknown peer {%s}",
829+
BTL_VERBOSE(("adding tcp proc for peer {%s}",
830830
OPAL_NAME_PRINT(*name)));
831831

832832
opal_proc = opal_proc_for_name (*name);

opal/mca/btl/tcp/help-mpi-btl-tcp.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,3 @@ continue properly.
156156

157157
Local host: %s
158158
PID: %d
159-
#
160-
[client connect fail]
161-
WARNING: Open MPI failed to TCP connect to a peer MPI process via
162-
TCP. This should not happen.
163-
164-
Your Open MPI job may now fail.
165-
166-
Local host: %s
167-
PID: %d
168-
Message: %s
169-
Error: %s (%d)

0 commit comments

Comments
 (0)