|
From: | Bill Auerbach |
Subject: | RE: [lwip-users] tcp_enqueue problem, using socket: |
Date: | Tue, 18 Mar 2008 13:41:09 -0400 |
Piero, This occurs with a lot of calls to
tcp_write with small pieces of data. If you called it with 15 bytes per call,
you could have over 100 elements in the queue. I think there are 2
possibilities. Increase TCP_SND_QUEUELEN or before you call tcp_write, check pcb->snd_queuelen
and call tcp_output if it’s at TCP_SND_QUEUELEN – 1. This makes me
wonder why tcp_enqueue doesn’t do this test and call tcp_output instead
of exceeding the queue len causing an error. Can’t tcp_enqueue prevent
this? Bill From:
address@hidden
[mailto:address@hidden On Behalf Of Piero 74 Hi. |
[Prev in Thread] | Current Thread | [Next in Thread] |