lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #59632] Calling tcp_write() without TCP_WRITE_FLAG_COP


From: Oleg Kobrin
Subject: [lwip-devel] [bug #59632] Calling tcp_write() without TCP_WRITE_FLAG_COPY does in fact copy data
Date: Tue, 8 Dec 2020 05:15:37 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36

Follow-up Comment #3, bug #59632 (project lwip):

In my case: I checked again, writing a packet of 12 bytes without
TCP_WRITE_FLAG_COPY set decreases pcb->snd_buf by 12.
Another try:
calling err_t Err = tcp_write(Connects[Sock].pcb, Data, Len, 0);
Len = 2404, pcb->snd_buf = 23722.
After call:
pcb->snd_buf = 21318.
23722 - 21318 = 2404.

Looks like this is due to TCP_OVERSIZE is defined default to TCP_MSS.
Data is copied to oversize buf.

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?59632>

_______________________________________________
  Сообщение отправлено по Savannah
  https://savannah.nongnu.org/




reply via email to

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