Commit 46de6bdb authored by Jayesh Krishna's avatar Jayesh Krishna
Browse files

[svn-r8965] Add VC_EVENT_TERMINATED event calls when a conn is teared down....

[svn-r8965] Add VC_EVENT_TERMINATED event calls when a conn is teared down. This fix corresponds to changes made in r8201 in the tcp netmod. Without the fix programs hang in MPI_Finalize
parent 72f1aaf6
......@@ -1187,9 +1187,10 @@ static int gen_write_fail_handler(MPIU_EXOVERLAPPED *wr_ov)
mpi_errno = MPIDI_CH3U_Handle_connection(sc->vc, MPIDI_VC_EVENT_TERMINATED);
/* FIXME: We should ideally do a shutdown() not close () */
mpi_errno = MPID_nem_newtcp_module_post_close_ex(sc);
MPIU_ERR_SETANDJUMP1(mpi_errno, MPI_ERR_OTHER, "**write",
"**write %s", MPIU_OSW_Strerror(MPIU_EX_STATUS_TO_ERRNO(MPIU_ExGetStatus(wr_ov))));
......@@ -454,6 +454,9 @@ int MPID_nem_newtcp_module_vc_terminate (MPIDI_VC_t *vc)
mpi_errno = MPID_nem_newtcp_module_cleanup(vc);
if (mpi_errno) MPIU_ERR_POP(mpi_errno);
mpi_errno = MPIDI_CH3U_Handle_connection(vc, MPIDI_VC_EVENT_TERMINATED);
if (mpi_errno) MPIU_ERR_POP(mpi_errno);
return mpi_errno;
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