]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix TCP keepalive (#853)
authorAmos Jeffries <yadij@users.noreply.github.com>
Sun, 1 Aug 2021 12:58:25 +0000 (12:58 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 1 Aug 2021 14:24:30 +0000 (14:24 +0000)
commit1dde46601ec02f0e9879d6d37199a1353a88c860
treea8c6e8c26b213370dc710c2211d9497e71b1e97f
parenta80e3b44795bc9647857fc47d155a01b3f1a41dd
Fix TCP keepalive (#853)

Setting TCP keep-alive flags at accept(2) time resolves issues with
client sockets timing out while waiting for the ::Server handler to run.

Also resolves a bug with FTP DATA connections not having keep-alive set.
These connections would truncate objects if the data transfer connection
paused for too long and became timed out by the network routing system.
16 files changed:
acinclude/ax_cxx_0x_types.m4
configure.ac
src/anyp/PortCfg.cc
src/anyp/PortCfg.h
src/client_side.cc
src/comm.cc
src/comm.h
src/comm/Makefile.am
src/comm/Tcp.cc [new file with mode: 0644]
src/comm/Tcp.h [new file with mode: 0644]
src/comm/TcpAcceptor.cc
src/comm/forward.h
src/ipc/TypedMsgHdr.h
src/servers/FtpServer.cc
src/tests/stub_comm.cc
src/tests/stub_libcomm.cc