Seems like its the single byte thing... I tried adding:
int flag = 1; if(setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof(flag)) < 0)
but did not have any effect. I also did the echo 1 > /proc/sys/net/ipv4/tcp_low_latency seems to have no effect also.
Jerry