mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-09 10:56:12 -04:00
[MINOR] stream_sock: prepare for closing when all pending data are sent
Since we'll soon be able to close a connection with remaining data in a buffer, it becomes obvious that we can prepare to close when we're about to send the last chunk of data and not the whole buffer.
This commit is contained in:
parent
019fd5bc93
commit
33b2db69a9
1 changed files with 1 additions and 1 deletions
|
|
@ -612,7 +612,7 @@ static int stream_sock_write_loop(struct stream_interface *si, struct buffer *b)
|
|||
|
||||
if (MSG_MORE &&
|
||||
(((b->flags & (BF_SHUTW|BF_SHUTW_NOW|BF_HIJACK)) == BF_SHUTW_NOW &&
|
||||
(max == b->l)) ||
|
||||
(max == b->send_max)) ||
|
||||
(max != b->l && max != b->send_max))
|
||||
&& (fdtab[si->fd].flags & FD_FL_TCP)) {
|
||||
send_flag |= MSG_MORE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue