Search code examples
socket.ionagle

nagle's algorithm in socket.io


Is anyone aware how to configure nagle's algorithm (on or off) while using socket.io?
Is this option even provided with socket.io?
I am assuming that the default behavior is configured to use nagle's algorithm (please correct me if I am wrong).

I would ideally like to configure nagle's algo (on/off) while using socket.io as needed in different applications - regardless of which web/app server I may be using.

Thanks!


Solution

  • As per Guillermo Rauch, Nagle's algorithm is turned off by default for web sockets in socket.io. I will submit a request to make this configurable (hopefully this will be looked at in a future release).

    Thanks Guillermo.