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.
/* 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;