lib_xtcp TCP_NODELAY to disable nagle

Technical questions regarding the XTC tools and programming with XMOS.
aritec
Member++
Posts: 16
Joined: Thu Sep 15, 2011 7:19 pm

lib_xtcp TCP_NODELAY to disable nagle

Post by aritec »

Is ist possible to disable nagle by default, to prevent "delayed Ack"?

I tried with "tcp_nagle_disable(pcb);", but i still get the debug output:
[6139713198] tcp_recved: received 26 bytes, wnd 3176 (0).
[6139830721] tcp_fasttmr: delayed ACK
[6139832955] tcp_output: sending ACK for 4171603852
I'm using the latest code from GitHub, with the LWIP stack.
Thanks
Armin
User avatar
andrewxcav
Verified
Active Member
Posts: 63
Joined: Wed Feb 17, 2016 5:10 pm

Post by andrewxcav »

I am not sure why this wouldn't work, based on the definition here:

https://github.com/xmos/lib_xtcp/blob/b ... tcp.h#L382

following this through, it seems like any error would occur here:

https://github.com/xmos/lib_xtcp/blob/b ... ut.c#L1041