[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Problems with sending UDP packets in FreeRTOS
From: |
Noam Weissman |
Subject: |
Re: [lwip-users] Problems with sending UDP packets in FreeRTOS |
Date: |
Thu, 28 Jul 2016 09:56:34 +0000 |
Hi Simon,
I had this problem long ago and as far as I remember packets were not freed
Or that the sending rate was high and eventually it got into no memory.
As you wrote unsent UDP packets will be freed after 5 seconds but if you send a
packet
every 100ms or so and only have 20-30 buffers 5 seconds will not solve the
error.
BR,
Noam.
-----Original Message-----
From: lwip-users [mailto:address@hidden On Behalf Of Simon Goldschmidt
Sent: Thursday, July 28, 2016 12:22 PM
To: address@hidden
Subject: Re: [lwip-users] Problems with sending UDP packets in FreeRTOS
Noam Weissman wrote:
> The reason is that if you send data to a wrong IP or domain and TCP
> stack does not have the destination MAC address so it will issue ARP
> messages. What if the ARP message fails ?... The TCP stack does not
> know where to send the UDP packets. As a result if you continue to
> send UDP packets they are added to the waiting packets to be sent. They are
> never sent, memory is not freed and eventually you are without memory !!
This is *not* true for lwIP. Pending (unresolved) ARP entries get removed after
5 seconds.
Queued packets will be freed on removal. If this shouldn't work, please file a
bug!
Simon
_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users
- [lwip-users] Problems with sending UDP packets in FreeRTOS, Mike Fleetwood, 2016/07/27
- Re: [lwip-users] Problems with sending UDP packets in FreeRTOS, Noam Weissman, 2016/07/27
- Re: [lwip-users] Problems with sending UDP packets in FreeRTOS, Mike Fleetwood, 2016/07/28
- Re: [lwip-users] Problems with sending UDP packets in FreeRTOS, Noam Weissman, 2016/07/28
- Re: [lwip-users] Problems with sending UDP packets in FreeRTOS, Mike Fleetwood, 2016/07/28
- Re: [lwip-users] Problems with sending UDP packets in FreeRTOS, Simon Goldschmidt, 2016/07/28
- Re: [lwip-users] Problems with sending UDP packets in FreeRTOS,
Noam Weissman <=
- Re: [lwip-users] Problems with sending UDP packets in FreeRTOS, Simon Goldschmidt, 2016/07/28
- Re: [lwip-users] Problems with sending UDP packets in FreeRTOS, Mike Fleetwood, 2016/07/28
Re: [lwip-users] Problems with sending UDP packets in FreeRTOS, Simon Goldschmidt, 2016/07/28
- Re: [lwip-users] Problems with sending UDP packets in FreeRTOS, Mike Fleetwood, 2016/07/28
- Re: [lwip-users] Problems with sending UDP packets in FreeRTOS, Sylvain Rochet, 2016/07/28
- Re: [lwip-users] Problems with sending UDP packets in FreeRTOS, Simon Goldschmidt, 2016/07/28
- Re: [lwip-users] Problems with sending UDP packets in FreeRTOS, Sylvain Rochet, 2016/07/28
- Re: [lwip-users] Problems with sending UDP packets in FreeRTOS, Mike Fleetwood, 2016/07/28
- Re: [lwip-users] Problems with sending UDP packets in FreeRTOS, Sylvain Rochet, 2016/07/28
- Re: [lwip-users] Problems with sending UDP packets in FreeRTOS, goldsimon, 2016/07/28