lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Fail on too much data?


From: Tomáš Švec
Subject: [lwip-users] Fail on too much data?
Date: Mon, 10 Sep 2012 14:23:18 +0200

Hello, everyone,

I am running a simple webserver on LWIP 1.4.0. When I want to send a larger ammount of data, however, it fails. The command looks like this:

tcp_write(tpcb, Icon, sizeof(Icon) - 1, 0);
// Icon is a static array of chars

When I step through the code, it stops in tcp_out.c on these lines:

  /* fail on too much data */
  if (len > pcb->snd_buf)...

I am sending 1150 bytes, while there is only a 256 bytes sending buffer. I get that, but how is it supposed to be sent correctly? Should my code handle the fragmentation itself? That doesn't make sense, does it?

Any help is greatly appreciated.

Best regards

Tomas

reply via email to

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