]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: stream-int: make sure not to go through the rcv_buf path after splice()
authorWilly Tarreau <w@1wt.eu>
Thu, 15 Nov 2018 15:06:02 +0000 (16:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 15 Nov 2018 16:00:08 +0000 (17:00 +0100)
commitffb1205a4710fcec54e5ce86141660f5888ea3b1
tree49f604ac33b30aacfba5b15e3617496f2f8dac80
parent81464b4e4df822b9613e61af565d0384e9f8d3ec
BUG/MINOR: stream-int: make sure not to go through the rcv_buf path after splice()

When splice() reports a pipe full condition, we go through the common
code used to release a possibly empty pipe (which we don't have) and which
immediately tries to allocate a buffer that will never be used. Further,
it may even subscribe to get this buffer if the resources are low. Let's
simply get out of this way if the pipe is full.

This fix could be backported to 1.8 though the code is a bit different
overthere.
src/stream_interface.c