zephyr/subsys
Benjamin Lindqvist ed025b2f04 net: lib: coap_client: observe-related fixes
An earlier pull request implementing observe support was merged too
hastily. It had a few issues:

1. The predicate for whether a request should be marked not ongoing was
wrong (it checked ret != 0 instead of ret < 0)
2. Without observes in mind, MID-based deduplication is not a required
feature. Deduplication was handled implicitly - the exchange would get
dropped after the first response anyway, so duplicate responses would
not get matched to anything. But with observes, there are several
responses in an exchange. This commit adds this.
3. Using coap_request_is_observe(&internal_req->request) in the response
handler requires the whole request to stay in scope for the lifetime of
the observation, which I observed was not always the case. Adding an
is_observe bool to the internal struct improved stability significantly.

With these fixes, GETs with observe option works very well.

Signed-off-by: Benjamin Lindqvist <benjamin@eub.se>
2024-05-21 16:42:38 -04:00
..
bindesc bindesc: Update build time without re-running cmake entirely 2024-03-29 15:08:39 +00:00
bluetooth Bluetooth: Host: Forbid holding on to buf given to stack 2024-05-21 11:51:20 +01:00
canbus canbus: isotp: use proper CAN ID masks 2024-04-24 09:53:06 +02:00
console
debug gdbstub: Add v-packet handling function 2024-04-03 15:39:28 +01:00
demand_paging kernel: mmu: abstract access to page frame flags and address 2024-05-13 16:04:40 -04:00
dfu subsys/dfu/boot: Fix image confirm for Direct XIP 2024-02-06 21:00:36 +01:00
disk
dsp
emul treewide: drivers: espi: Adjust terms per eSPI specification 1.5 2024-05-02 13:56:46 -04:00
fb
fs fs: fuse: fix fuse include path 2024-05-06 22:53:27 +01:00
input input: utils: rename the input dump callback 2024-04-01 11:05:02 +01:00
ipc ipc: icmsg_me: Fix possible integer overflow 2024-05-09 12:40:24 -04:00
jwt jwt: use sys_rand_get directly 2024-04-05 12:28:46 +02:00
llext subsys/llext: Generate syscalls stubs for EDK exclusively for userspace 2024-05-17 16:21:48 +01:00
logging logging: Fix network backend compilation 2024-05-20 14:25:44 +03:00
lorawan convert: use k_uptime_seconds 2024-05-14 09:32:01 +02:00
mem_mgmt
mgmt mgmt: mcumgr: transport: Add missing net include file 2024-05-21 09:36:24 +02:00
modbus modbus: Respect CONFIG_UART_USE_RUNTIME_CONFIGURE 2024-04-10 10:01:55 +02:00
modem modem: chat: implement buffer stats 2024-05-20 14:40:06 +03:00
net net: lib: coap_client: observe-related fixes 2024-05-21 16:42:38 -04:00
pm arch: arm: cortex_m: pm_s2ram: Add option for custom marking 2024-05-17 14:33:47 +02:00
portability cmsis_rtos_v1: support memory mapped stack at abort hook 2024-04-10 07:44:27 -04:00
random random: Rename source files 2024-03-28 09:44:44 +00:00
retention
rtio
sd sd: sd_ops: take card lock when issuing IOCTL command 2024-05-16 18:54:21 -04:00
sensing
settings subsys/settings: add a function to save subtree 2024-05-01 22:56:19 +01:00
shell shell: devmem: address cmd_dump multiple call problem 2024-05-15 10:13:23 +02:00
sip_svc linker: subsys: Use Z_LINK_ITERABLE_SUBALIGN 2024-04-20 13:45:25 -04:00
stats
storage subsys/storage/flash_map: Inline flash_area_layout 2024-03-22 08:58:48 +01:00
task_wdt task_wdt: add shell 2024-03-22 10:24:55 +01:00
testsuite Bluetooth: Controller: Add BT_CTLR_HCI Kconfig option 2024-05-20 15:16:54 +01:00
timing
tracing tracing: full reset during init 2024-04-24 17:08:24 -04:00
usb usb: device_next: add initial BOS support 2024-05-17 16:25:02 +01:00
zbus
CMakeLists.txt
Kconfig