| Add comment about lingerie after close. - geomyidae - A small C-based gopherd. | |
| git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri… | |
| Log | |
| Files | |
| Refs | |
| Tags | |
| README | |
| LICENSE | |
| --- | |
| commit 60240cfb3f5f2bf9fbcb726c6a2c37699ae0900f | |
| parent c99b01b00b1c6d0740e92d9e77ab8e0daa96c4bf | |
| Author: Christoph Lohmann <[email protected]> | |
| 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(-) | |
| --- | |
| 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, |