File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,17 @@ BEGIN_C_DECLS
34
34
#define MCA_BTL_TCP_HDR_TYPE_PUT 2
35
35
#define MCA_BTL_TCP_HDR_TYPE_GET 3
36
36
#define MCA_BTL_TCP_HDR_TYPE_FIN 4
37
+ /* The MCA_BTL_TCP_HDR_TYPE_FIN is a special kind of message sent during normal
38
+ * connexion closing. Before the endpoint closes the socket, it performs a
39
+ * 1-way handshake by sending a FIN message in the socket. This lets the other
40
+ * end of the connexion discriminate between the case in which the peer has
41
+ * closed intentionnally (e.g., during MPI_FINALIZE), or unintentionally (e.g.,
42
+ * as the result of some transmission or process failure).
43
+ * The process initiating the close sends the FIN message but does not wait
44
+ * for a 2-way handshake and closes the socket immediately. Thus, the recipient
45
+ * of a FIN message can simply close the socket and mark the endpoint as closed
46
+ * without error, and without answering a FIN message itself.
47
+ */
37
48
38
49
struct mca_btl_tcp_hdr_t {
39
50
mca_btl_base_header_t base ;
You can’t perform that action at this time.
0 commit comments