Is it possible to tell whether an application has disabled Nagle's algorithm?
Given a binary application running on linux PC. Is it possible to determine if it disables the Nagle's algorithm.
One way could be to see the output in wireshark and depending on the time differences. Could you please tell me a reliable way of finding it out 开发者_运维技巧from the wireshark output?
Is there a more direct way? Can I trace the system call which sets the tcp_nodelay
option?
The target application could be a web server, application server, database listener or any other server process.
The most direct way would be to trace the setsockopt system call.
Looking from the outside you can only notice when it disables Nagle and behaves bad (sends lots of small fragments rapidly). If it disables Nagle and behaves well, you cannot notice from outside.
精彩评论