mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-22 05:36:56 +00:00
CLEANUP: stream: Remove bogus loop in conn_si_send_proxy
The if-statement was converted into a while-loop in7fe45698f5
to handle EINTR. This special handling was later replaced in0a03c0f022
by conn_sock_send. The while-loop was not changed back and is not unconditionally exited after one iteration, with no `continue` inside the body. Replace by an if-statement.
This commit is contained in:
parent
c7f880ee3b
commit
36839dc39f
@ -339,7 +339,7 @@ int conn_si_send_proxy(struct connection *conn, unsigned int flag)
|
||||
* connection, in which case the connection is validated only once
|
||||
* we've sent the whole proxy line. Otherwise we use connect().
|
||||
*/
|
||||
while (conn->send_proxy_ofs) {
|
||||
if (conn->send_proxy_ofs) {
|
||||
const struct conn_stream *cs;
|
||||
int ret;
|
||||
|
||||
@ -399,7 +399,6 @@ int conn_si_send_proxy(struct connection *conn, unsigned int flag)
|
||||
goto out_wait;
|
||||
|
||||
/* OK we've sent the whole line, we're connected */
|
||||
break;
|
||||
}
|
||||
|
||||
/* The connection is ready now, simply return and let the connection
|
||||
|
Loading…
Reference in New Issue
Block a user