mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
BUG/MINOR: stream-int: Don't call snd_buf() if there are still data in the pipe
In si_cs_send, as said in comments, snd_buf() should only be called if there is no data in the pipe anymore. But actually, this condition was not respected.
This commit is contained in:
parent
e4acd5e471
commit
3f76f4ccf7
1 changed files with 3 additions and 0 deletions
|
|
@ -626,6 +626,9 @@ int si_cs_send(struct conn_stream *cs)
|
|||
|
||||
if (conn->flags & CO_FL_ERROR || cs->flags & CS_FL_ERROR)
|
||||
return 1;
|
||||
|
||||
if (oc->pipe)
|
||||
goto end;
|
||||
}
|
||||
|
||||
/* At this point, the pipe is empty, but we may still have data pending
|
||||
|
|
|
|||
Loading…
Reference in a new issue