Since these are short messages (< MSS
), I guess the stack may be implementing Nagle's algorithm. Is the server doing some kind of delayed ACKs? If possible you should capture a trace and see if there are pending acknowledgements from the other side.
In either case, TCP_NODELAY
should help.