[Dnsmasq-discuss] TCP Fast Open?
Craig Andrews
candrews at integralblue.com
Sun Mar 10 02:02:25 GMT 2019
TCP Fast Open eliminates a round trip for TCP connections. Since dnsmasq
is performance sensitive and uses many TCP connections, using TCP Fast
Open would be a nice improvement. See https://lwn.net/Articles/508865/
for background.
On the client side, it's as simple as setting the TCP_FASTOPEN_CONNECT
option on the socket.
On the server side, dnsmasq would do something like this on the
listening socket:
int qlen = 5;
setsockopt(fd, SOL_TCP, TCP_FASTOPEN, &qlen, sizeof(qlen));
Chrome and Firefox have supported TCP Fast Open for clients for over a
year, and other DNS servers (ex unbound) use it for client and sever
connections too.
Could dnsmasq implement TCP Fast Open?
Thanks,
~Craig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20190309/acd1ec9f/attachment.sig>
More information about the Dnsmasq-discuss
mailing list