Commit 883854c5 authored by Lidong Zhong's avatar Lidong Zhong Committed by David Teigland

dlm: keep listening connection alive with sctp mode

The connection struct with nodeid 0 is the listening socket,
not a connection to another node.  The sctp resend function
was not checking that the nodeid was valid (non-zero), so it
would mistakenly get and resend on the listening connection
when nodeid was zero.
Signed-off-by: default avatarLidong Zhong <lzhong@suse.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 5c02c392
...@@ -618,6 +618,11 @@ static void retry_failed_sctp_send(struct connection *recv_con, ...@@ -618,6 +618,11 @@ static void retry_failed_sctp_send(struct connection *recv_con,
log_print("Retry sending %d bytes to node id %d", len, nodeid); log_print("Retry sending %d bytes to node id %d", len, nodeid);
if (!nodeid) {
log_print("Shouldn't resend data via listening connection.");
return;
}
con = nodeid2con(nodeid, 0); con = nodeid2con(nodeid, 0);
if (!con) { if (!con) {
log_print("Could not look up con for nodeid %d\n", log_print("Could not look up con for nodeid %d\n",
......
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