chiark / gitweb /
socket: Add support for TCP defer accept
authorSusant Sahani <susant@redhat.com>
Thu, 14 Aug 2014 17:36:12 +0000 (23:06 +0530)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 14 Aug 2014 23:55:44 +0000 (19:55 -0400)
commitcc567c9beace114554f7e7f50c3a5181cc44a07d
tree749ee36446a80a0ad710c73f7677c3719fbbb277
parent209e9dcd7b2f23b68ff93bf20fad025bc03219ac
socket: Add support for TCP defer accept

TCP_DEFER_ACCEPT Allow a listener to be awakened only when data
arrives on the socket. If TCP_DEFER_ACCEPT set on a server-side
listening socket, the TCP/IP stack will not to wait for the final
ACK packet and not to initiate the process until the first packet
of real data has arrived. After sending the SYN/ACK, the server will
then wait for a data packet from a client. Now, only three packets
will be sent over the network, and the connection establishment delay
will be significantly reduced.
man/systemd.socket.xml
src/core/dbus-socket.c
src/core/load-fragment-gperf.gperf.m4
src/core/socket.c
src/core/socket.h