lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] POST data using several packets


From: address@hidden
Subject: Re: [lwip-users] POST data using several packets
Date: Fri, 26 Jun 2009 15:36:37 +0200
User-agent: Thunderbird 2.0.0.22 (Macintosh/20090605)

In that case, it has been fixed in CVS after 1.3.0. You can either upgrade to CVS head or just change the error defines...

Simon


Jesper Vestergaard wrote:
Simon Goldschmidt wrote:
If i add pxNetCon->err = ERR_OK; after the do while everything works. It seems that ERR_TIMEOUT is treated as a fatal error and lwip wont send anything trough the connection if a timeout occurs.
Which version of lwIP are you using? I just had a look at err.h in CVS and 
there, ERR_TIMEOUT is not fatal:

err.h >>>>>>>>>>
#define ERR_TIMEOUT    -3    /* Timeout.                 */
#define ERR_RTE        -4    /* Routing problem.         */

#define ERR_IS_FATAL(e) ((e) < ERR_RTE)
<<<<<<<<<< err.h <<<<<<<<<<

I don't know if that's already the case in 1.2.0, though...

Simon
I'm using 1.3.0

/* Definitions for error constants. */

#define ERR_OK          0    /* No error, everything OK. */
#define ERR_MEM        -1    /* Out of memory error.     */
#define ERR_BUF        -2    /* Buffer error.            */
#define ERR_RTE        -3    /* Routing problem.         */

#define ERR_IS_FATAL(e) ((e) < ERR_RTE)

#define ERR_ABRT       -4    /* Connection aborted.      */
#define ERR_RST        -5    /* Connection reset.        */
#define ERR_CLSD       -6    /* Connection closed.       */
#define ERR_CONN       -7    /* Not connected.           */

#define ERR_VAL        -8    /* Illegal value.           */

#define ERR_ARG        -9    /* Illegal argument.        */

#define ERR_USE        -10   /* Address in use.          */

#define ERR_IF         -11   /* Low-level netif error    */
#define ERR_ISCONN     -12   /* Already connected.       */

#define ERR_TIMEOUT    -13   /* Timeout.                 */

#define ERR_INPROGRESS -14   /* Operation in progress    */




_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users






reply via email to

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