]> git.kaiwu.me - haproxy.git/commit
MAJOR: http: reset msg->sov after headers are forwarded
authorWilly Tarreau <w@1wt.eu>
Thu, 17 Apr 2014 19:14:47 +0000 (21:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 22 Apr 2014 21:15:28 +0000 (23:15 +0200)
commit1234f4a21028051d0249d3b34fd8b3360a2f2318
tree0845c295e945767193e3657eaea4d0a3f3a0c237
parent0d09050aa5ee80305888ed1b88f8b619582edd45
MAJOR: http: reset msg->sov after headers are forwarded

In order to avoid abusively relying on buf->o to guess how many bytes to
rewind during a redispatch, we now clear msg->sov. Thus the meaning of this
field is exactly "how many bytes of headers are left to be forwarded". It
is still possible to rewind because msg->eoh + msg->eol equal that value
before scheduling the forwarding, so we can always subtract them.
include/proto/proto_http.h
src/proto_http.c