lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Query for output complete before closing TCP connection


From: Marco Jakobs
Subject: [lwip-users] Query for output complete before closing TCP connection
Date: Thu, 03 Dec 2009 09:36:46 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Dear all,

i'm dealing with an assert i'm getting sometimes after sending some TCP packets. In a case i caught here, i'm sending out some packets on a TCP connection, using netconn_write with "NETCONN_COPY" option. Right after sending out my last packet, i'm calling

netconn_close(conn);
netconn_delete(conn);

to close and delete the TCP connection.

But sometimes i've noticed device restarts, and just now i caught an assert:

.../Libraries/lwIP/src/core/tcp_in.c:208:tcp_input: TIM

My theory (?) is, that there may be one (or more) of the packets are still in output when i'm calling the netconn_close and netconn_delete which causes problems with lwIP? If this may cause the problems, how can i query if all packets are sent before closing and deleting the connection?

Marco



reply via email to

[Prev in Thread] Current Thread [Next in Thread]