From 40dfe30f2cd6c04226948b4bca68592e7d34580d Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Fri, 10 Jan 2025 11:49:14 +0000 Subject: [PATCH] feat(coap); Support for server keepalives --- coap/examples/coap_server/main/coap_server_example_main.c | 1 + coap/idf_component.yml | 2 +- coap/libcoap | 2 +- coap/sbom_libcoap.yml | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/coap/examples/coap_server/main/coap_server_example_main.c b/coap/examples/coap_server/main/coap_server_example_main.c index 4ba1e0be1a..9dea7991c0 100644 --- a/coap/examples/coap_server/main/coap_server_example_main.c +++ b/coap/examples/coap_server/main/coap_server_example_main.c @@ -256,6 +256,7 @@ static void coap_example_server(void *p) coap_context_set_block_mode(ctx, COAP_BLOCK_USE_LIBCOAP | COAP_BLOCK_SINGLE_BODY); coap_context_set_max_idle_sessions(ctx, 20); + coap_context_set_keepalive(ctx, 30); #ifdef CONFIG_COAP_MBEDTLS_PSK /* Need PSK setup before we set up endpoints */ diff --git a/coap/idf_component.yml b/coap/idf_component.yml index ee83915b05..d3c844b22b 100644 --- a/coap/idf_component.yml +++ b/coap/idf_component.yml @@ -1,4 +1,4 @@ -version: "4.3.5~2" +version: "4.3.5~3" description: Constrained Application Protocol (CoAP) C Library url: https://github.com/espressif/idf-extra-components/tree/master/coap dependencies: diff --git a/coap/libcoap b/coap/libcoap index 0d240530b4..4d84859620 160000 --- a/coap/libcoap +++ b/coap/libcoap @@ -1 +1 @@ -Subproject commit 0d240530b4beba90cc86c488e17bd0090437a0dd +Subproject commit 4d84859620540c8baf06fa094abb9e0ae19da0e7 diff --git a/coap/sbom_libcoap.yml b/coap/sbom_libcoap.yml index 54c9e26dd6..54fbbb405f 100644 --- a/coap/sbom_libcoap.yml +++ b/coap/sbom_libcoap.yml @@ -4,7 +4,7 @@ cpe: cpe:2.3:a:libcoap:libcoap:{}:*:*:*:*:*:*:* supplier: 'Organization: libcoap ' description: A CoAP (RFC 7252) implementation in C url: https://github.com/obgm/libcoap -hash: 0d240530b4beba90cc86c488e17bd0090437a0dd +hash: 4d84859620540c8baf06fa094abb9e0ae19da0e7 cve-exclude-list: - cve: CVE-2024-31031 reason: Resolved in version 4.3.5-rc1