Skip to content

Commit ffcc1d3

Browse files
Tomasz Bursztykacfriedt
authored andcommitted
tests/net: TLS test requires more RX PKT and buffers
Due to the previous change on when to send TCP packet on local IP, pkt may be held in a queue which is to run on a k_work. This changes the scheduling, and due to that one of the test is failing to allocate a RX net_pkt at the time it wants to. (previous TCP connection is not yet fully closed and still own PKT that new connection cannot get then). Of course all those waiting paquets require buffers so raising them. It was verified that there is no leak, adding net_pkt_print() at tcp_conn_unref() shows that when all tcp connection are finally unrefed: all net_pkt get freed as well. Signed-off-by: Tomasz Bursztyka <[email protected]>
1 parent 2d49a4c commit ffcc1d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/net/socket/tls/prj.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
3636
CONFIG_TEST_USERSPACE=y
3737

3838
# The test requires lot of bufs
39+
CONFIG_NET_MAX_CONTEXTS=20
3940
CONFIG_NET_PKT_TX_COUNT=24
41+
CONFIG_NET_PKT_RX_COUNT=24
42+
CONFIG_NET_BUF_TX_COUNT=32
43+
CONFIG_NET_BUF_RX_COUNT=32
4044

4145
CONFIG_ZTEST=y
4246
CONFIG_ZTEST_STACKSIZE=2048

0 commit comments

Comments
 (0)