If there is not enough space in the HTX message, the EOM can be delayed when a
bodyless message is added. So, don't count it in the estimated size of headers.
/* size of the HTX start-line */
sz = sizeof(struct htx_sl) + h1sl->rq.m.len + h1sl->rq.u.len + h1sl->rq.v.len;
sz += h1_eval_htx_hdrs_size(hdrs);
-
- /* size of the EOM */
- if (h1m->state == H1_MSG_DONE)
- sz += sizeof(struct htx_blk) + 1;
-
return sz;
}
/* size of the HTX start-line */
sz = sizeof(struct htx_sl) + h1sl->st.v.len + h1sl->st.c.len + h1sl->st.r.len;
sz += h1_eval_htx_hdrs_size(hdrs);
-
- /* size of the EOM */
- if (h1m->state == H1_MSG_DONE)
- sz += sizeof(struct htx_blk) + 1;
-
return sz;
}