mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
BUG/MINOR: raw_sock: correctly set the MSG_MORE flag
Due to a typo, the MSG_MORE flag used to replace MSG_NOSIGNAL and MSG_DONTWAIT. Fortunately, sockets are always marked non-blocking, so the loss of MSG_DONTWAIT is harmless, and the NOSIGNAL is covered by the interception of the SIGPIPE. So no issue could have been caused by this bug.
This commit is contained in:
parent
d8b2bb5c05
commit
7e4086dc18
1 changed files with 1 additions and 1 deletions
|
|
@ -373,7 +373,7 @@ static int raw_sock_from_buf(struct connection *conn, struct buffer *buf, int fl
|
|||
|
||||
send_flag = MSG_DONTWAIT | MSG_NOSIGNAL;
|
||||
if (try < buf->o)
|
||||
send_flag = MSG_MORE;
|
||||
send_flag |= MSG_MORE;
|
||||
|
||||
ret = send(conn->t.sock.fd, bo_ptr(buf), try, send_flag | flags);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue