commit | 1234f4a21028051d0249d3b34fd8b3360a2f2318 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Apr 17 21:14:47 2014 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Apr 22 23:15:28 2014 +0200 |
tree | 0845c295e945767193e3657eaea4d0a3f3a0c237 | |
parent | 0d09050aa5ee80305888ed1b88f8b619582edd45 [diff] |
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.