mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-11 19:30:40 +03:00
If the response is large, it can take time to transfer over the body. If the server then initiates a new unsolicited response during the existing transfer, then overflow / retry issues start to occur, compounded if multiple unsolicited responses are triggerred during an existing transfer. Hold back the notify of the new unsolicited response(s) until the existing response has completed (or failed for another reason). Other code has been tightened up incase the server or client are not libcoap based and also exhibit this behavior, so to have a better chance of recovery.