HI,

Well this is what I think. But I wonder if assert are handled correctly in the stack ?

From what I see, nothing break when the assert happen. I do not need to restart anything to get the stack continue after the cable was reconnected to my router.


Le 2014-02-12 13:12, Martin Velek a écrit :
Hi,

from wiki http://en.wikipedia.org/wiki/Assertion_%28software_development%29: In computer programming <http://en.wikipedia.org/wiki/Computer_programming>, an *assertion* is a predicate <http://en.wikipedia.org/wiki/First-order_logic> (a true--false statement) placed in a program to indicate that the developer /thinks/ that the predicate is always true at that place. If an assertion evaluates to false at run-time, an assertion failure results, which typically causes execution to abort.

You should restart the stack. If you are doing everything correctly, it could mean that there is a severe bug inside the lwip. Try to upgrade to 1.4.1, try to trace the situation which modifies the variables in the assertion and double check your code, e.g. using one socket in different threads, calling netif functions without the netifapi prefix, etc.
I'm already to 1.4.1, my bad.

I use only 1 socket in one thread.

Regards

Jonathan

Martin


On Tue, Feb 11, 2014 at 8:08 PM, Jonathan dumaresq <[email protected] <mailto:[email protected]>> wrote:

    Hi all,

    We are working on a problem right now. I use lwip 1.4.0.

    I have an LWIP_ASSERT("already writing or closing",
    msg->conn->current_msg == NULL &&
              msg->conn->write_offset == 0);

    I think this happen when I have many pbuf ready to be sent, and I
    loose the initernet. On the first send timeout, I try to close the
    socket.

    My question is what I sould do on LWIP_ASSERT ?

    Should I just put some warning on my display and continue, or I
    should stop something in the Lwip stack and reinitialise something ?


    regards

    Jonathan


    ------------------------------------------------------------------------
    <http://www.avast.com/>       

    Ce courrier électronique ne contient aucun virus ou logiciel
    malveillant parce que la protection Antivirus avast!
    <http://www.avast.com/> est active.



    _______________________________________________
    lwip-users mailing list
    [email protected] <mailto:[email protected]>
    https://lists.nongnu.org/mailman/listinfo/lwip-users



--
This message has been scanned for viruses and
dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
believed to be clean.


_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users



---
Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce 
que la protection avast! Antivirus est active.
http://www.avast.com
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to