/* Realing input buffer if necessary */
if (b_head(srcbuf) + b_data(srcbuf) > b_wrap(srcbuf))
- b_slow_realign(srcbuf, trash.area, 0);
+ b_slow_realign_ofs(srcbuf, trash.area, 0);
if (!h1sl) {
/* If there no start-line, be sure to only parse the headers */
/* Realing input buffer if necessary */
if (b_peek(srcbuf, ofs) > b_tail(srcbuf))
- b_slow_realign(srcbuf, trash.area, 0);
+ b_slow_realign_ofs(srcbuf, trash.area, 0);
tlr_h1m.flags = (H1_MF_NO_PHDR|H1_MF_HDRS_ONLY);
ret = h1_headers_to_hdr_list(b_peek(srcbuf, ofs), b_tail(srcbuf),
* at this stage because it should be the first record received
* from the FCGI application.
*/
- b_slow_realign(dbuf, trash.area, 0);
+ b_slow_realign_ofs(dbuf, trash.area, 0);
}
inbuf = b_make(b_head(dbuf), b_data(dbuf), 0, fconn->drl);
* at this stage because it should be the first record received
* from the FCGI application.
*/
- b_slow_realign(dbuf, trash.area, 0);
+ b_slow_realign_ofs(dbuf, trash.area, 0);
}
inbuf = b_make(b_head(dbuf), b_data(dbuf), 0, fconn->drl);
* it's probably cheaper than doing 2 recv() calls.
*/
if (b_data(&h1c->ibuf) > 0 && b_data(&h1c->ibuf) < 128)
- b_slow_realign(&h1c->ibuf, trash.area, 0);
+ b_slow_realign_ofs(&h1c->ibuf, trash.area, sizeof(struct htx));
/* avoid useless reads after first responses */
if (!h1c->h1s ||