commit | 5d707e1aaa4498d6eef9c0fd174240c3a7bdf020 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Jun 28 11:09:07 2009 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sun Jun 28 11:09:07 2009 +0200 |
tree | 8dd8dd0c7672fbcf271c62721699312f859be02a | |
parent | 5d01a63b7862235fdd3119cb29d5a0cfd04edb91 [diff] |
[MEDIUM] stream_sock: don't close prematurely when nolinger is set When the nolinger option is used, we must not close too fast because some data might be left unsent. Instead we must proceed with a normal shutdown first, then a close. Also, we want to avoid merging FIN with the last segment if nolinger is set, because if that one gets lost, there is no chance for it to be retransmitted.