Skip to content

Commit ed90ff5

Browse files
authored
Merge pull request #13110 from jiaxiyan/tcp
[v4.1.x]btl/tcp: Correctly report TCP connect errors
2 parents 351e716 + 945ef06 commit ed90ff5

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
@@ -844,7 +844,7 @@ static int mca_btl_tcp_endpoint_complete_connect(mca_btl_base_endpoint_t* btl_en
844844
opal_show_help("help-mpi-btl-tcp.txt", "client connect fail",
845845
true, opal_process_info.nodename,
846846
getpid(), msg,
847-
strerror(opal_socket_errno), opal_socket_errno);
847+
strerror(so_error), so_error);
848848
free(msg);
849849
mca_btl_tcp_endpoint_close(btl_endpoint);
850850
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
@@ -796,7 +796,7 @@ mca_btl_tcp_proc_t* mca_btl_tcp_proc_lookup(const opal_process_name_t *name)
796796
mca_btl_base_endpoint_t *endpoint;
797797
opal_proc_t *opal_proc;
798798

799-
BTL_VERBOSE(("adding tcp proc for unknown peer {%s}",
799+
BTL_VERBOSE(("adding tcp proc for peer {%s}",
800800
OPAL_NAME_PRINT(*name)));
801801

802802
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)