-
Notifications
You must be signed in to change notification settings - Fork 13.3k
udp->endPacket() is silently dropping packets #2285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
May be related to my problem. Issue #2340 |
@igrr @everslick I tried yield() and delay(1) as per your suggestion. Is there any definite for reliable transmission atleast from the device side. |
IMHO there is something else wrong with your code. even though the UDP |
@everslick is this issue still valid in latest git? Does PR #3362 (lwip2) help? |
Yes it is still valid. The root cause is in the SDK, but i would like to keep this open for now. |
This will need some time for me to check. I completely switched to ESP32.
But I will have a look.
|
@d-a-v i solved this problem by increasing the buffer in the lwip library based on solution provided in some discussion. Its working fine, so i didnot bother much. |
@lovelesh could you specify which buffer did you modify? |
I'm good with closing this issue. I can confirm, that LwIP2 has this fixed. |
Thanks for your feedback! @lovelesh Which buffer did you modify ? |
Closing for the same reason as for #1988. |
This issue is a followup from #1009 (comment)
when rapidly sending UDP packets, udp_sendto() (called from libraries/ESP8266WiFi/src/include/UdpContext.h:286 will not report an error, if it silently drops the packet for whatever reason (buffer allocation?).
even though UDP is inherently 'unreliable', the API should still report internal errors if possible, so users of the API can deal with them.
The text was updated successfully, but these errors were encountered: