]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sample: improve sample_fetch_string() to report partial contents
authorWilly Tarreau <w@1wt.eu>
Fri, 13 Jun 2014 14:04:35 +0000 (16:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 13 Jun 2014 14:32:48 +0000 (16:32 +0200)
commit5b4bf70a95b745f4316d91e80ecf58e11fa60ebf
tree321af98a7cd473a3c945ab4ccbf4ae99b05a2031
parentd9ed3d2848d460935d0c29358ad98006f84545e7
MINOR: sample: improve sample_fetch_string() to report partial contents

Currently, all callers to sample_fetch_string() call it with SMP_OPT_FINAL.
Now we improve it to support the case where this option is not set, and to
make it return the original sample as-is. The purpose is to let the caller
check the SMP_F_MAY_CHANGE flag in the result and know that it should wait
to get complete contents. Currently this has no effect on existing code.
src/sample.c