Skip to content

Commit

Permalink
Async: Report async delayed PDU when request handler is re-invoked
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdeep1 committed Feb 21, 2025
1 parent b9526c7 commit d18d7ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coap_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -4681,6 +4681,8 @@ coap_check_async(coap_context_t *context, coap_tick_t now) {
LL_FOREACH_SAFE(context->async_state, async, tmp) {
if (async->delay != 0 && async->delay <= now) {
/* Send off the request to the application */
coap_log_debug("Async PDU presented to app.\n");
coap_show_pdu(COAP_LOG_DEBUG, async->pdu);
handle_request(context, async->session, async->pdu, NULL);

/* Remove this async entry as it has now fired */
Expand Down

0 comments on commit d18d7ce

Please sign in to comment.