Hi, my Java program is running into some occasional-yet-significant delay when writing to a TCP socket. The problem seems to be that my side is delaying packets because it's waiting for the other side to send more data so that my side can piggy-back its data on the next ack to the other side.
It looks like I can fix this by calling tcp_enter_quickack_mode (found here: http://lxr.linux.no/linux+v18.104.22.168/...p_input.c#L178
). However, i) I can't call this from Java, and ii) even if I use C/C++, I have to call it before every send because the kernel turns it back off after every send - it looks like the pingpong flag is the relevant one?
Has anyone ever modified the kernel so that this setting is always off? I'm no expert, so I'm a little wary of making changes without a voice of experience.