lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] How to avoid lwIP v2.1.2 udp send stuck when data is co


From: Sergey A. Borshch
Subject: Re: [lwip-users] How to avoid lwIP v2.1.2 udp send stuck when data is coming in faster than it is going out
Date: Fri, 16 Sep 2022 12:24:21 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

On 9/15/22 16:48, Lan Yang wrote:
> Here's what you need help with:
> Q1: Is it the best way to solve issue1 by adding a mutex?Yes, it's correct and quite strait forward solution.> Q2: Regarding issue 2, our team guessed that issue 2 was caused by the
> fact that the speed at which the application layer stuffed UDP with data
> was faster than the speed at which UDP forwarded data. Is our guess
> correct? How to verify and adjust? Do you have any suggestions?Yes, seems like your guess is correct. Try to pause process in this case for some time to let LwIP to send out some data and check if next call after pause succeeded.

> Q3: We define
> The operation of this function udp_client_send() routine? Is there a
> better definition for Demo?
> Q4: What do lwip experts usually do to avoid such a situation where data
> is coming in faster than it is going out?Just drop extra data. UDP not guarantees datagramm delivery anyway.

--
С уважением,
 Сергей Борщ
  SB ELDI SIA



reply via email to

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