Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By martinayotte
#15697 Hi IGRR,
I won't argue about the way to fix that latency since I don't have the knowledge for that, but I'm sure you understand that having 150ms on every packets sent is an issue. Maybe the bug is somewhere else then...
User avatar
By reaper7
#16294 I have :roll: but I wrote about this earlier...
so, two images say more than thousand words:

old with oryginal delay, open jpg image from esp (15.82kB 320x240) -> 37,37s!!!:
Image

new with Chris--A mod tcp_output(_pcb), open jpg image from esp (16.16kB 320x240) -> 1,84s!!!:
Image

No other changes, only delay replace with tcp_output.

I don't say that use tcp_output instead delay are correct, maybe problem exists somewhere else but at this moment I applied this change and I no see any negative effects
User avatar
By Chris--A
#16325 IGRR mentioned how my change cause the code to not wait for ACK packets.

Rather than replacing the delay(5000), try adding the call to tcp_output before it. This way ACK's are still received.
It might not improve the latency as much, but might make a difference.