mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-06 03:59:36 +00:00
BUG/MINOR: httpclient: CF_SHUTW_NOW should be tested with channel_is_empty()
CF_SHUTW_NOW shouldn't be a condition alone to exit the io handler, it must be tested with the emptiness of the response channel. Must be backported to 2.5.
This commit is contained in:
parent
1eca894321
commit
58a81aeb91
@ -928,7 +928,8 @@ more:
|
||||
* isn't any data to handle and a shutdown is detected, let's stop
|
||||
* everything */
|
||||
if ((req->flags & (CF_SHUTR|CF_SHUTR_NOW)) ||
|
||||
(res->flags & (CF_SHUTW|CF_SHUTW_NOW))) {
|
||||
(res->flags & CF_SHUTW) ||
|
||||
((res->flags & CF_SHUTW_NOW) && channel_is_empty(res))) {
|
||||
goto end;
|
||||
}
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user