libwebsockets
Lightweight C library for HTML5 websockets
|
TCP_FASTOPEN
support in lws Lws supports enabling TCP_FASTOPEN oper-vhost for listen sockets.
Set the info.fo_listen_queue
to nonzero at vhost creation. Different platforms interpret this number differently, zero always disables it but on Linux, the number is interpreted as a SYN queue length.
On FreeBSD, OSX and Windows, the number is basically a bool, with the extra restriction OSX and Windows only allows 0 or 1.
To configure the kernel for listening socket TCP_FASTOPEN, you need
At least on FreeBSD, you need to set the net.inet.tcp.fastopen.enabled sysctl to 1