lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] What can I do in a tcp_err callback?


From: narke
Subject: [lwip-users] What can I do in a tcp_err callback?
Date: Sun, 11 Dec 2011 22:33:07 +0800

Hi,

After checking the 1.4.0 source code, I found it seems that doing any
operation on a pcb in its tcp_err callback function is not safe.
Since when lwip was invoking the error callbackup, the pcb either had
been freed or will being freed shortly.

In particularly,  can someone confirm what's the consequences if I
call following function in a tcp_err callback:

- tcp_close( the current pcb )
- tcp_new()

Thanks in advance.

-- 
Life is the only flaw in an otherwise perfect nonexistence
    -- Schopenhauer

narke
public key at http://subkeys.pgp.net:11371 (address@hidden)



reply via email to

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