From ed9c7ee560b21acdc097822ce1d123aa82a33bfc Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Tue, 25 Feb 2014 19:15:52 +0100 Subject: [PATCH] bugfix: #25 async example creates short packet Increased packet size by 5. --- examples/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/server.c b/examples/server.c index 4b8f35bb..1442f3eb 100644 --- a/examples/server.c +++ b/examples/server.c @@ -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;