MINOR: hlua: add hlua_stream_ctx_prepare helper function

Stream-dedicated hlua ctx creation and attachment is now performed in
hlua_stream_ctx_prepare() helper function to ease code maintenance.

No functional behavior change should be expected.

(cherry picked from commit 2fdb9d41b3eaed453838062798b07c2b17936c4f)
[wt: backported as needed for next fix]
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit b25d5d37163d9aa65eac50406265912a0a1d617a)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit c7e0e721cb12ef724679ed057fb40f1b4081e65f)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 6932b6c67a6299def9dd2495a3adde48bf3dff4a)
[cf: filter part was removed]
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed