]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] buffer_forward() would not correctly consider data already scheduled
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Sep 2009 18:32:30 +0000 (20:32 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 3 Oct 2009 17:16:22 +0000 (19:16 +0200)
commitdb95cd94c0cf5baac19018705b8cfbaa3367a80e
treeaf15ff23c1ab0efe79db1de31948e986941be984
parent29b366dcdd585f99511a64848fbfb7e002b6f6ca
[BUG] buffer_forward() would not correctly consider data already scheduled

The computations in buffer_forward() were only valid if buffer_forward()
was used on a buffer which had no more data scheduled for forwarding.
This is always the case right now so this bug is not yet triggered but
it will soon be. Now we correctly discount the bytes to be forwarded
from the data already present in the buffer.
(cherry picked from commit 91aa577b1f0483c50bfa72b3198cf1a1ff835163)
include/proto/buffers.h