Tags: plgd-dev/go-coap
Tags
FIX: response source address on [::]-bound servers are wrong (#629) * fix: on binding the server to [::] the response happened to come from different addresses than sent to. * fix: add .idea to gitignore * feat: store source addr in conn * fix: did not swap * fix: remove vscode folder from gitignore * fix: ignore mcast adresses * fix: modify signatures in NewConn in tests * fix: data race condition * fix: don't use dummy adresses in test * fix: missed nil check * fix: don't upsert if nothing to do * fix: prevent against race conditions and dangling pointers * fix: comment * fix for golangci-lint * fix(udp): avoid multicast conn key leaks and stale control state * fix the two gocritic warnings --------- Co-authored-by: Theodor Rauch <theodor.rauch@ml-pa.com> Co-authored-by: Jozef Kralik <jozef.kralik@plgd.dev>
chore: bump Go baseline to 1.24 and update CI/test compatibility (#648) * chore: bump Go baseline to 1.24 and update CI/test compatibility - Raise Go version requirements from 1.20 to 1.24 in CI workflows, lint config, and project docs. - Keep Windows CI capped below Go 1.26 as noted in workflow comments. - Expand TLS listener test error assertion to also accept the Windows-specific remote-close message. * chore(lint): add scoped golangci exclusions for legacy DTLS and style noise - exclude perfsprint findings in test files - suppress revive stutter warning for DTLS compatibility type names - suppress revive stdlib-package-name warnings for existing package layout - suppress staticcheck SA1019 warnings for intentional legacy DTLS config/dial usage * chore(ci): bump SonarQube scan action to v6 in test workflow
Fix race condition during CSM message exchange (#611) * Fix race condition during CSM message exchange * Rename handler registration function and fix some issues * Return nil in case of timeout * Fix naming for linter * Fix linter context issues * Add tests for CSM Option * gofumpt tcp/client_test.go * Fix shadowing and resource leaks in test --------- Co-authored-by: cah <lubomir.capucha@kistler.com> Co-authored-by: Cvo <miroslav.cuvar@kistler.com>
Fix UDP Socket Binding Issue on Linux for IPv4 and IPv6 (#582) * Fix UDP Socket Binding Issue on Linux for IPv4 and IPv6 On Linux, when using UDP sockets, both IPv6 and IPv4 addresses are bound to the same socket by default. This can cause issues when sending and receiving packets across different address families. Specifically, if we receive a packet from an IPv4 address, attempting to send a response using an IPv6 address fails.
Blockwise: Allow transfer via NonConfirmable messages (#548) *Blockwise: Allow transfer via NonConfirmable messages Ensured the request type is correctly set during write operations, enhancing reliability and consistency in data handling. --------- Co-authored-by: Alberto Zambrano <azambrano.etraid@grupoetra.com> Co-authored-by: Jozef Kralik <jojo.lwin@gmail.com>
PreviousNext