Skip to content

Commit

Permalink
Merge pull request #9000 from kaspar030/backport_gcoap_fix
Browse files Browse the repository at this point in the history
net/gcoap: increase stack size by sizeof(coap_pkt_t) [BACKPORT]
  • Loading branch information
cgundogan authored Apr 23, 2018
2 parents 689333f + 87a2653 commit 817551a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sys/include/net/gcoap.h
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,8 @@ extern "C" {
* @brief Stack size for module thread
*/
#ifndef GCOAP_STACK_SIZE
#define GCOAP_STACK_SIZE (THREAD_STACKSIZE_DEFAULT + DEBUG_EXTRA_STACKSIZE)
#define GCOAP_STACK_SIZE (THREAD_STACKSIZE_DEFAULT + DEBUG_EXTRA_STACKSIZE \
+ sizeof(coap_pkt_t))
#endif

/**
Expand Down

0 comments on commit 817551a

Please sign in to comment.