There is no "possibly" here, if you call lwIP RAW API functions from within an interrupt, you can't also call them from the main thread or other nested interrupts. All calls to lwIP RAW API functions must happen from within the same context, they can't interrupt themselves. Check the examples in the contrib tree. Read the wiki http://lwip.wikia.com/wiki/Raw/native_API You can call tcp_close from your my_recv. Make sure your "my_send" (if any)is not interruptable by your my_recv
-- _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
