kgiusti commented on a change in pull request #433: DISPATCH-1234 - Zero out
the edge context on the link before the edge…
URL: https://github.com/apache/qpid-dispatch/pull/433#discussion_r245089295
##########
File path: src/router_core/modules/edge_addr_tracking/edge_addr_tracking.c
##########
@@ -308,13 +316,20 @@ static void on_link_event(void *context, qdrc_event_t
event, qdr_link_t *link)
if (addr && qdr_address_is_mobile_CT(addr)) {
qdr_addr_endpoint_state_t *endpoint_state =
qdrc_get_endpoint_state_for_connection(mc->endpoint_state_list, link->conn,
link);
link->edge_context = endpoint_state;
+ endpoint_state->link = link;
if (qdrc_can_send_address(addr, link->conn) && endpoint_state)
{
qdrc_send_message(mc->core, addr,
endpoint_state->endpoint, true);
}
}
break;
}
+ case QDRC_EVENT_LINK_EDGE_DATA_DETACHED :
+ {
+ link->edge_context = 0;
Review comment:
should the corresponding endpoint_state->link be reset also?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]