mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-05 21:16:09 +02:00
CLEANUP: haterm: Remove duplicated bloc to know if haterm must drain
When haterm was waiting for request headers, there was two test to know if it had to drain the request data before replying. One of them was useless and was thus removed.
This commit is contained in:
parent
4af4feed33
commit
e373fd6319
@ -991,15 +991,6 @@ static struct task *process_hstream(struct task *t, void *context, unsigned int
|
||||
/* HTX send the start line and headers if not already sent */
|
||||
if (!hstream_sl_hdrs_htx_buf_snd(hs, conn))
|
||||
goto err;
|
||||
|
||||
if (hstream_must_drain(hs)) {
|
||||
/* The request must be drained before sending the response (HS_ST_OPT_REQ_AFTER_RES not set).
|
||||
* The body will be drained upon next wakeup.
|
||||
*/
|
||||
TRACE_STATE("waking up task", HS_EV_HSTRM_IO_CB, hs);
|
||||
task_wakeup(hs->task, TASK_WOKEN_IO);
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
else {
|
||||
struct buffer *buf;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user