diff --git a/src/stream_sock.c b/src/stream_sock.c index a733e9939..89102adc0 100644 --- a/src/stream_sock.c +++ b/src/stream_sock.c @@ -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;