net: tcp: Timeout memory allocations
net: tcp: Timeout memory allocations

Instead of waiting forever for a free net_buf, set a timeout to
the allocations (500 ms). This way the application will not be
blocked by memory exhaustion.

Signed-off-by: Jukka Rissanen <f9f077d1da4c7aa947f9864fa5a28c3588f6a45d@linux.intel.com>

bigdinotech/zephyr,bigdinotech/zephyr,bigdinotech/zephyr,bigdinotech/zephyr,bigdinotech/zephyr