lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #61097] Deadlock due to inability to receive ACKs when


From: Christopher Head
Subject: [lwip-devel] [bug #61097] Deadlock due to inability to receive ACKs when all pbufs are full
Date: Wed, 1 Sep 2021 23:36:30 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #1, bug #61097 (project lwip):

I realized later on that everything I just said only applies if you do
full-stack zero-copy receives, by having the application keep the pbufs it’s
given in the tcp_recv callback until it’s ready to process them. If the
application instead adds a copying step, where it copies data from those pbufs
into a separate buffer, then that separate buffer only needs to be one
window-size long, it doesn’t need to be one window-size times the receive
chunk size; so, if you’re OK with losing full zero-copy, this isn’t
actually a big problem (and saying that each socket needs a window-sized
buffer is totally reasonable).

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

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