Tags: withthegrid/go-coap
Tags
Fix an issue which prevents blockwise xfer working with observe If you observe a resource and the state change is too big for a single packet, it will be sent blockwise. However, only the first block is sent with the observe token, it is expected that clients will request subsequent blocks by issuing a new request. Returning a response to this new request would fail on the client due to ETags not matching, despite no ETags being used. The failure error was: received message doesn't contains ETAG but cached received message contains it([]) This patch ensures that the received message actually contains an ETag, which fixes this issue.
fix infinite loop caused by close connection during TLS handshake (pl… …gd-dev#184) * fix infinite loop caused by close connection during TLS handshake When connection is closed during TLS handshake, it returns i/o timeout. So we need to validate if timeout real occurs by set deadline, otherwise infinite loop occurs. * check time validity only for timeout occurency
fix of silently stop notifications (plgd-dev#183) fixes plgd-dev#179 implemented according to https://tools.ietf.org/html/rfc7641#section-3.4
Move uint64 fields that are accessed using sync/atomic to the beginni… …ng of struct to ensure proper alignment in memory On 32-bit platforms (e.g. Raspberry Pi) it is caller's responsibility to arrange 64-bit alignment for sync/atomic operation parameters, see: https://golang.org/pkg/sync/atomic/#pkg-note-BUG. This commit fixes "SIGSEGV: segmentation violation" errors on Raspberry Pi 3.
PreviousNext