I added
pxSRVconn = netconn_new(NETCONN_TCP); // init conn
if (pxSRVconn != NULL)
if (pxSRVconn->pcb.tcp != NULL)
pxSRVconn->pcb.tcp->so_options |= SO_KEEPALIVE; // turn on
keep-alive
and not keep-alive is working.
How are you testing it?
I have microcontroler Atmel AT91SAM7S256. At the platform works almost
original FreeRTOS 4.1.0 + lwIP1.1.1 + modified the BSD-PPP. WinARM includes
GNU GCC 4.1.1.
But I don't understand why when I close
socket on my windows serwer the lwIP does not notify that. Only when I
close
my serwer the lwIP close too (RST state?).
I'm not sure about this bit. What do you expect lwIP to do when your
server closes the connection?
I expect the lwIP close the "socket" too after server closing. In this
moment lwIP do nothing and still is waiting at netconn_recv
How does lwIP's behaviour differ from
other stacks? The connection will not be closed until your application
also closes it - the server closing does not mean the client can't still
use the connection.
when serwer close socket client get message to finalize data exchanging and
closes the socket too.
best regards
Janusz
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users