Nicolas Dioli wrote:
I think there is no free memory after output because of that:
          #define TCP_SND_QUEUELEN                (8 *
(TCP_SND_BUF)/(TCP_MSS)) = 8*512/536 =7.6
So when i arrived at this test:
          /* check for configured max queuelen and possible overflow */
            if ((queuelen>= TCP_SND_QUEUELEN) || (queuelen>
TCP_SNDQUEUELEN_OVERFLOW)) {
i have a queuelen of 7 and i return an ERR_MEM.
That's correct. So why don't you just increase TCP_SND_QUEUELEN if you really want to enqueue that many pbufs before sending? After all, that setting looks a little low for what you are doing.

Simon

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

Reply via email to