commit | 20b622e04b27e76f7b4be0c09b435e8799143d75 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Oct 21 21:31:42 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Oct 21 21:48:23 2021 +0200 |
tree | 3d931ad0eabf57ecb411b3235edbad334fefe462 | |
parent | e6dc7a0129b8b34e7e1ce1f4bda5d4bfee4ab749 [diff] |
MINOR: connection: add a new CO_FL_WANT_DRAIN flag to force drain on close Sometimes we'd like to do our best to drain pending data before closing in order to save the peer from risking to receive an RST on close. This adds a new connection flag CO_FL_WANT_DRAIN that is used to trigger a call to conn_ctrl_drain() from conn_ctrl_close(), and the sock_drain() function ignores fd_recv_ready() if this flag is set, in order to catch latest data. It's not used for now.