]> git.kaiwu.me - haproxy.git/commit
MEDIUM: http: forward headers again while waiting for connection to complete
authorWilly Tarreau <w@1wt.eu>
Thu, 17 Apr 2014 19:50:00 +0000 (21:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 22 Apr 2014 21:15:28 +0000 (23:15 +0200)
commit7ba235466d3b0a71ddfad73e681343302d0f67bf
tree1fe018a3c233c6035526fe5a0929e2db6470b19d
parent1234f4a21028051d0249d3b34fd8b3360a2f2318
MEDIUM: http: forward headers again while waiting for connection to complete

Thanks to the last updates on the message pointers, it is now safe again to
enable forwarding of the request headers while waiting for the connection to
complete because we know how to safely rewind this part.

So this patch slightly modifies what was done in commit 80a92c0 ("BUG/MEDIUM:
http: don't start to forward request data before the connect") to let up to
msg->sov bytes be forwarded when waiting for the connection. The resulting
effect is that a POST request may now be sent with the connect's ACK, which
still saves a packet and may even be useful later when TFO is supported.
src/proto_http.c