Add comment about lingerie after close. - geomyidae - A small C-based gopherd.
HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 60240cfb3f5f2bf9fbcb726c6a2c37699ae0900f
DIR parent c99b01b00b1c6d0740e92d9e77ab8e0daa96c4bf
HTML Author: Christoph Lohmann <20h@r-36.net>
Date: Wed, 22 Jul 2020 15:29:49 +0200
Add comment about lingerie after close.
Diffstat:
M main.c | 6 ++++++
1 file changed, 6 insertions(+), 0 deletions(-)
---
DIR diff --git a/main.c b/main.c
@@ -869,6 +869,12 @@ main(int argc, char *argv[])
clientp, nocgi, istls);
if (!istls) {
+ /*
+ * On close only wait for at maximum 60
+ * seconds for all data to be transmitted
+ * before forcefully closing the
+ * connection.
+ */
lingerie.l_onoff = 1;
lingerie.l_linger = 60;
setsockopt(sock, SOL_SOCKET, SO_LINGER,