disable nagle algorithm
authorAndy Green <andy@warmcat.com>
Tue, 8 Mar 2011 08:56:57 +0000 (08:56 +0000)
committerAndy Green <andy@warmcat.com>
Tue, 8 Mar 2011 08:56:57 +0000 (08:56 +0000)
commit6c9395529ee6f5c4cc4d4a5e47c211ec7ad61644
tree262d861960137e18b908423a0c9040165acf5a6d
parent98a623fa469fd4dd19bc894a6b7504553d6bc689
disable nagle algorithm

Ago noticed that some Windows clients experience small packets
from the server being aggregated and set after a long delay
(200-300ms).

He found that TCP_NODELAY on the socket solved this, I tested it
and it didn't have any noticable bad effect, so I implemented it
for all sockets, client and server.

Thans Ago for debugging this and notifying the cause.

Reported-by: Ago Allikmaa <maxorator@gmail.com>
Signed-off-by: Andy Green <andy@warmcat.com>
lib/client-handshake.c
lib/libwebsockets.c
lib/private-libwebsockets.h