Dear support team,
I am currently experiencing with the F28388D device using the enet_lwip demo application.
I am about to write my own application for the CM which shall handle the TCP/IP communication.
Due to restricted access to variables, I allow only 1 connection at a time.
(I implemented this connection restriction by my own because it looks like it's not possible to limit the maximum number of connections per listening port by the TI implementation.)
I would like to add TCP keep-alives to detect broken connections.
(without this mechanism, the TI will not be reachable anymore after e.g. a network cable disconnection, client crashes without closing TCP connection etc.)
I have set:
#define LWIP_TCP_KEEPALIVE 1
and have added this code in the connect/accept callback:
pcb->so_options |= SOF_KEEPALIVE;
pcb->keep_intvl = 5000;
IMHO I'd expect keep-alive packets every 5 seconds but nothing happens during an idle connection.
Is the keep-alive feature supported in your lwIP implementation?
Did I miss anything?
Thank you,
Markus