accept_connection(): Set NO_DELAY flag for the accepting socket
authorFabian Keil <fk@fabiankeil.de>
Fri, 6 Nov 2015 13:35:24 +0000 (13:35 +0000)
committerFabian Keil <fk@fabiankeil.de>
Fri, 6 Nov 2015 13:35:24 +0000 (13:35 +0000)
commit861f2331b86d82c770f38b7a60f8328862fe6da3
tree9e6a52a26d33194893a37c4d1c8c8fe93b7303af
parent77094923d744423500ec5d7d3c61195c9ae0582e
accept_connection(): Set NO_DELAY flag for the accepting socket

This significantly reduces the latency if the operating
system is not configured to set the flag by default.

For Windows the unnecessary delay has been reported
to be ~200ms while on ElectroBSD it's still 100ms.

Reported by Johan Sintorn in #894.
jbsockets.c