Date: Fri, 01 May 2009 10:11:41 +0000 From: Poul-Henning Kamp <phk@phk.freebsd.dk> To: net@freebsd.org Subject: SO_LINGER + shutdown(2) Message-ID: <9639.1241172701@critter.freebsd.dk>
next in thread | raw e-mail | index | archive | help
I was somewhat surprised to see that calling shutdown(SHUT_WR) on a TCP socket with SO_LINGER set {.l_onoff = 1, .l_linger = 0} does not in fact flush the send queue orderly, but immediately RST's the connection. I realize this is an issue for the Dept. of deep TCP arcanæ and not something to be changed lightly, so consider this more of an observation than bug report. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9639.1241172701>