msg->msg_state = HTTP_MSG_ENDING;
ending:
+ req->flags &= ~CF_EXPECT_MORE; /* no more data are expected */
+
/* other states, ENDING...TUNNEL */
if (msg->msg_state >= HTTP_MSG_DONE)
goto done;
* flag with the last block of forwarded data, which would cause an
* additional delay to be observed by the receiver.
*/
- if (msg->flags & HTTP_MSGF_TE_CHNK)
+ if (HAS_REQ_DATA_FILTERS(s))
req->flags |= CF_EXPECT_MORE;
DBG_TRACE_DEVEL("waiting for more data to forward",
msg->msg_state = HTTP_MSG_ENDING;
ending:
+ res->flags &= ~CF_EXPECT_MORE; /* no more data are expected */
+
/* other states, ENDING...TUNNEL */
if (msg->msg_state >= HTTP_MSG_DONE)
goto done;
* flag with the last block of forwarded data, which would cause an
* additional delay to be observed by the receiver.
*/
- if ((msg->flags & HTTP_MSGF_TE_CHNK) || (msg->flags & HTTP_MSGF_COMPRESSING))
+ if (HAS_RSP_DATA_FILTERS(s))
res->flags |= CF_EXPECT_MORE;
/* the stream handler will take care of timeouts and errors */