Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 240
ali haider Avatar asked Oct 08 '22 10:10

ali haider


1 Answers

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.

like image 118
ali haider Avatar answered Nov 11 '22 17:11

ali haider