|
From: | Daniel Pauli |
Subject: | Re: [lwip-users] TCP send() fails when other sockets perform retransmissions |
Date: | Tue, 3 Jan 2017 16:34:34 +0100 |
If you have LwIP stats enabled, you can check the memory pools for errors to figure out which one is failing. You should be able to resolve this by sizing your memory pools to handle the number of supported connections. For example if you only support 5 simultaneous TCP connections, then your pools should be big enough to allocate 5 send buffers worth of segments. This is how I configure my products, which typically have plenty of RAM. Not sure what the recommendation is for very constrained RAM products.
Yes there is, with SO_LINGER you can perform an abortive closure rather than graceful by setting the timeout to 0. Typically this is a bad idea. There’s a decent discussion here on stackoverflow:
[Prev in Thread] | Current Thread | [Next in Thread] |