mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-13 11:50:40 +03:00
bugfix: #25 async example creates short packet
Increased packet size by 5.
This commit is contained in:
1 parent
e2dfed6035
commit
ed9c7ee560
1 file changed
+1
-1
+1
-1
@@ -219,7 +219,7 @@ check_async(coap_context_t *ctx, coap_tick_t now) {
|
||||
coap_pdu_t *response;
|
||||
coap_async_state_t *tmp;
|
||||
|
||||
size_t size = sizeof(coap_hdr_t) + 8;
|
||||
size_t size = sizeof(coap_hdr_t) + 13;
|
||||
|
||||
if (!async || now < async->created + (unsigned long)async->appdata)
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user