You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.1 KiB

  1. From 3810ab9e71a19e7f04a9e18580abc77c276d0ff1 Mon Sep 17 00:00:00 2001
  2. From: Willy Tarreau <w@1wt.eu>
  3. Date: Fri, 21 Oct 2016 17:17:18 +0200
  4. Subject: [PATCH 09/26] BUG/MINOR: vars: smp_fetch_var() doesn't depend on HTTP
  5. but on the session
  6. Thus the SMP_USE_HTTP_ANY dependency is incorrect, we have to depend on
  7. SMP_USE_L5_CLI (the session). It's particularly important for session-wide
  8. variables which are kept across HTTP requests. For now there is no impact
  9. but it will make a difference with tcp-request session rules.
  10. (cherry picked from commit 87846e42a478fe2aa0fbc1e162ba5fb227be49b7)
  11. ---
  12. src/vars.c | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. diff --git a/src/vars.c b/src/vars.c
  15. index 4a0c4ed..a3dd85c 100644
  16. --- a/src/vars.c
  17. +++ b/src/vars.c
  18. @@ -654,7 +654,7 @@ static int vars_max_size_reqres(char **args, int section_type, struct proxy *cur
  19. static struct sample_fetch_kw_list sample_fetch_keywords = {ILH, {
  20. - { "var", smp_fetch_var, ARG1(1,STR), smp_check_var, SMP_T_STR, SMP_USE_HTTP_ANY },
  21. + { "var", smp_fetch_var, ARG1(1,STR), smp_check_var, SMP_T_STR, SMP_USE_L5CLI },
  22. { /* END */ },
  23. }};
  24. --
  25. 2.7.3