You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
There is an issue with the esp8266 lwip library where the tcp_new() function uses a fixed sequence of source ports every time. This means that a node that is rebooting frequently and reconnecting to the same server may experience issues due to the host perceiving the packets as being retransmissions of old traffic - they have the exact same source, destination, and initial sequence number.
This has been reported and discussed in the Arduino core in esp8266/Arduino#632; their fix was to allow the user to call setLocalPortStart(), which sets an initial source port that is used (and incremented) to override local_port within the tcp_pcb returned by tcp_new().
Does ESPAsyncTCP have a work-around for this issue, and if not, could one be added? I believe I'm experiencing occasional dropped traffic caused by this oddity.