]> git.ipfire.org Git - thirdparty/squid.git/commit
Reduce SO_LINGER code duplication (#1941)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Fri, 8 Nov 2024 13:23:28 +0000 (13:23 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 10 Nov 2024 13:27:38 +0000 (13:27 +0000)
commita2ddc0b710f6b4c53b0648feed1f09bd9f92b08d
treed778658a22acbe3a85d40a93c5588033ba3e193d
parent627cca6dc8d0edb74ba3b42b1dcf45b170ddd1f1
Reduce SO_LINGER code duplication (#1941)

Also prevent nil connection pointer dereference and setsockopt() calls
with negative FD in comm_reset_close() and old_comm_reset_close().
It is unknown whether such bugs could be triggered before these changes.

Also removed fde::flags::nolinger as unused since 1999 commit 2391a162.
src/base/Makefile.am
src/base/OnOff.h [new file with mode: 0644]
src/comm.cc
src/fde.h
src/ipc_win32.cc