From 0a36832bd37867be322901d2c7e84eca73fdde0d Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Wed, 25 Jul 2018 14:49:25 +0100 Subject: [PATCH] Missing case for #201 to close down con_active The RST to a CoAP Ping was not decrementing the con_active count, so all new CON requests were waiting for the Ping to expire. --- src/net.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/net.c b/src/net.c index 57e444cf..8632b901 100644 --- a/src/net.c +++ b/src/net.c @@ -2122,6 +2122,9 @@ coap_dispatch(coap_context_t *context, coap_session_t *session, coap_log(LOG_ALERT, "got RST for message %d\n", pdu->tid); + if (session->con_active) + session->con_active--; + /* find transaction in sendqueue to stop retransmission */ coap_remove_from_queue(&context->sendqueue, session, pdu->tid, &sent);