Menu

#8 Inconsistency when sendto returns an error

closed-fixed
None
5
2012-06-29
2012-06-27
John Sucaet
No

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.

Discussion

  • John Sucaet

    John Sucaet - 2012-06-27
     
  • Olaf Bergmann

    Olaf Bergmann - 2012-06-29
    • assigned_to: nobody --> obgm
    • status: open --> closed-fixed
     
  • Olaf Bergmann

    Olaf Bergmann - 2012-06-29

    Fixed by applying your patch, thanks.

     
MongoDB Logo MongoDB