mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-30 10:06:43 +00:00
BUG/MINOR: proto_htx: Send outgoing data to client to start response processing
In http_wait_for_response(), we wait that all outgoing data have really been sent (from the channel's point of view) to start the processing of the response. In fact, it is used to send all intermediate 10x responses. For now the HTX api is not really handy when multiple messages are stored in the HTX structure.
This commit is contained in:
parent
66229af8df
commit
72b6273b5b
@ -1450,7 +1450,7 @@ int htx_wait_for_response(struct stream *s, struct channel *rep, int an_bit)
|
||||
* we should only check for HTTP status there, and check I/O
|
||||
* errors somewhere else.
|
||||
*/
|
||||
if (unlikely(htx_is_empty(htx) || htx_get_tail_type(htx) < HTX_BLK_EOH)) {
|
||||
if (unlikely(co_data(rep) || htx_is_empty(htx) || htx_get_tail_type(htx) < HTX_BLK_EOH)) {
|
||||
/*
|
||||
* First catch invalid response
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user