From 2d2be5305ed8ac9b94ceed7124e480edc56688af Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sat, 3 Dec 2016 15:45:39 +0100 Subject: BUG/MINOR: fix condition on MSG_MORE in last patch A parenthesis was missing causing MSG_MORE never to be emitted on headers. --- httpterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpterm.c b/httpterm.c index f5454c6..e99983c 100644 --- a/httpterm.c +++ b/httpterm.c @@ -1818,7 +1818,7 @@ int event_cli_write(int fd) { } #endif if (max && ret) - ret = send(fd, data_ptr, max, MSG_DONTWAIT | MSG_NOSIGNAL | (s->req_pieces || (s->ka && max >= s->to_write + b->l)) ? 0 : MSG_MORE); + ret = send(fd, data_ptr, max, MSG_DONTWAIT | MSG_NOSIGNAL | ((s->req_pieces || (s->ka && max >= s->to_write + b->l)) ? 0 : MSG_MORE)); #endif if (ret > 0) { -- 1.7.12.1