Skip to content

Commit 93846fd

Browse files
committed
Remove the pending event when socket is TCP_FAILED
Signed-off-by: Aurelien Bouteiller <[email protected]>
1 parent 6b3be22 commit 93846fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

opal/mca/btl/tcp/btl_tcp_endpoint.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,6 +1095,8 @@ static void mca_btl_tcp_endpoint_send_handler(int sd, short flags, void* user)
10951095
}
10961096
break;
10971097
case MCA_BTL_TCP_FAILED:
1098+
MCA_BTL_TCP_ENDPOINT_DUMP(1, btl_endpoint, true, "event_del(send) [endpoint_send_handler:error]");
1099+
opal_event_del(&btl_endpoint->endpoint_send_event);
10981100
break;
10991101
default:
11001102
BTL_ERROR(("invalid connection state (%d)", btl_endpoint->endpoint_state));

0 commit comments

Comments
 (0)