mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-10 10:50:40 +03:00
Once a ICMP Port Unreachable message is received, the session is disconnected by a call to coap_session_disconnect(). However if the session is of type CON, the logic currently tries to retransmit the packet, but nothing gets sent out. src/coap_session.c: Make sure that any entries on the context->sendqueue for the disconnected session are removed. examples/client.c: Add in a Nack handler so that the client immediately exits on the session disconnect. Additionally this also tidies up the exit after transmission retries.