]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: h1: add the restart offsets into struct h1m
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Sep 2018 09:51:31 +0000 (11:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 Sep 2018 15:38:25 +0000 (17:38 +0200)
commitb3b0152b6fd0e09f96f9427e35d3f9832460d901
tree173c1c8c0d39c5558087c6bdec7585e85bed8738
parent801250e07d8bebcaa028e6bb10f1b063ae3563d3
MINOR: h1: add the restart offsets into struct h1m

Currently the only user of struct h1m is the h2 mux when it has to parse
an H1 message coming from the channel. Unfortunately this is not enough
to efficiently parse HTTP/1 messages like those coming from the network
as we don't want to restart from scratch at every byte received.

This patch reintroduces the "next" offset into the H1 message so that any
H1 parser can use it to restart when called with a state that is not the
initial state.
include/proto/h1.h
include/types/h1.h