Inconsistency when sendto returns an error
Status: Beta
Brought to you by:
obgm
if sendto (called in coap_send_impl) returns an error (0 bytes written), coap_send_confirmed will return COAP_INVALID_TID. This signals the calling function that the pdu can be discarded due to transmission errors. However coap_send_confirmed has appended this pdu to the send queue for retransmission.
Attached a proposal for fixing this.
Fixed by applying your patch, thanks.