Bernhard 'Gustl' Bauer wrote:
I checked my http_recv(). I have 3 different exits:
1: pbuf_free(); tcp_abort(); return ERR_ABORT;
2: tcp_receved(); pbuf_free(); tcp_abort(); return ERR_ABORT;
3: tcp_receved(); pbuf_free(); return ERR_OK;
Is there anything wrong with an exit? Do I need tcp_recved() before
tcp_abort(); return ERR_ABORT; ?
tcp_abort currently shouldn't be used from one of the callback functions: http://savannah.nongnu.org/bugs/?27871

Can you try replacing that with tcp_close(); and return ERR_OK;? In any case, calling tcp_recved() won't hurt, too. (Although before tcp_abort, it shouldn't be necessary - once the above bug is fixed.)

Simon


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

Reply via email to