-
|
A
(see coap_client.c - get_free_request ) The second will the cause, that each While that may make sense for a separate CON response, I don't see, why that is required for a piggybacked response. Are there any considerations, why internal request should be kept for this additional time? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
I can only think of internal implementation reasons, the CoAP client thread is only active (i.e. actively polling the socket) when there are active exchanges: zephyr/subsys/net/lib/coap/coap_client.c Lines 1091 to 1096 in 732a3a5 Therefore, in case the request context was released right after receiving piggybacked response, any duplicate replies (for example in case the request was retransmitted in a slow network, but not actually lost) would be sitting on the socket until the next request is sent. Whether or not that's a big issue, I'm not sure, shouldn't matter in case of higher traffic. CC @SeppoTakalo for visibility. |
Beta Was this translation helpful? Give feedback.
-
|
Uhm, so much going on in different fields, I totally forgot about this one: #86293 |
Beta Was this translation helpful? Give feedback.
Uhm, so much going on in different fields, I totally forgot about this one: #86293
@boaks So it seems this very case was addressed by Seppo a few months ago (it is in NCS now, but wasn't there yet for v3.0.0).