I use netconn API.
Reduced keep-alive times in tcp.h:
#define TCP_NODELAY 0x01 /* don't delay send to coalesce packets */
#define TCP_KEEPALIVE 0x02 /* send KEEPALIVE probes when idle for
pcb->keepalive miliseconds */
/* Keepalive values */
#define TCP_KEEPDEFAULT 7200/*7200000*/ /*
KEEPALIVE timer in miliseconds */
#define TCP_KEEPINTVL 5000/*75000*/ /* Time
between KEEPALIVE probes in miliseconds */
#define TCP_KEEPCNT 9 /* Counter for
KEEPALIVE probes */
#define TCP_MAXIDLE TCP_KEEPCNT * TCP_KEEPINTVL /* Maximum
KEEPALIVE probe time */
and nothing. When I disconnect cable from my serwer the lwIP does not detect
link disconnection never. I still have in debug:
tcp_slowtmr: processing active pcb
tcp_slowtmr: polling application
tcp_slowtmr: processing active pcb
tcp_slowtmr: processing active pcb
tcp_slowtmr: processing active pcb
tcp_slowtmr: processing active pcb
tcp_slowtmr: polling application
tcp_slowtmr: processing active pcb
tcp_slowtmr: processing active pcb
tcp_slowtmr: processing active pcb
tcp_slowtmr: processing active pcb
tcp_slowtmr: polling application
tcp_slowtmr: processing active pcb
tcp_slowtmr: processing active pcb
I have not idea.
kind regards
Janusz
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users