MINOR: http: replace http_message_realign() with buffer_slow_realign()
authorWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 18:40:09 +0000 (20:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 19:28:17 +0000 (21:28 +0200)
commita7fe8e527c5f170a17e4d4ae95189ee812e43bab
treeb9ca6a682c4c507a9830c65c1dd4574f632b3451
parent0a3dd74c9cd24ab77178c9ccc65c577a91648cef
MINOR: http: replace http_message_realign() with  buffer_slow_realign()

There is no more reason for the realign function being HTTP specific,
it only operates on a buffer now. Let's move it to buffers.c instead.

It's likely that buffer_bounce_realign is broken (not used), this will
have to be inspected. The function is worth rewriting as it can be
cheaper than buffer_slow_realign() to realign large wrapping buffers.
include/proto/buffers.h
src/buffers.c
src/proto_http.c