[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: |
Mon, 7 Dec 2020 12:17:23 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36 |
URL:
<https://savannah.nongnu.org/bugs/?59632>
Summary: Calling tcp_write() without TCP_WRITE_FLAG_COPY does
in fact copy data
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: kiabrin
Submitted on: Пн 07 дек 2020 17:17:21
Category: TCP
Severity: 3 - Normal
Item Group: Faulty Behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
lwIP version: git head
_______________________________________________________
Details:
Hello!
Debugging my code on TivaC MCU, NO_OS configuration, I realized after call to
tcp_write() with no TCP_WRITE_FLAG_COPY flag that pcb->snd_buf was decreased
and real pcb->unsent->p->payload points not to my data, but somewhere inside
lwip memory pool.
This is not good, as at high output traffic I experience tcp send buffer
overflows, causing data loss.
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/bugs/?59632>
_______________________________________________
Сообщение отправлено по Savannah
https://savannah.nongnu.org/
- [lwip-devel] [bug #59632] Calling tcp_write() without TCP_WRITE_FLAG_COPY does in fact copy data,
Oleg Kobrin <=