0011-BUG-MINOR-http-Set-the-response-error-state-in-http_.patch 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. From 9304b76fb37a36f6249ec963093d74210bd237f6 Mon Sep 17 00:00:00 2001
  2. From: Christopher Faulet <cfaulet@haproxy.com>
  3. Date: Tue, 18 Jul 2017 10:35:55 +0200
  4. Subject: [PATCH 11/18] BUG/MINOR: http: Set the response error state in
  5. http_sync_res_state
  6. This is just typo. It may only report a wrong response message state in
  7. "show errors" on the CLI.
  8. This patch must be backported in 1.7.
  9. (cherry picked from commit a3992e06a6e74142d9784d18d8cb3527fadb64d6)
  10. Signed-off-by: William Lallemand <wlallemand@haproxy.org>
  11. ---
  12. src/proto_http.c | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. diff --git a/src/proto_http.c b/src/proto_http.c
  15. index 94c8d639..796955f5 100644
  16. --- a/src/proto_http.c
  17. +++ b/src/proto_http.c
  18. @@ -5530,7 +5530,7 @@ int http_sync_res_state(struct stream *s)
  19. goto http_msg_closed;
  20. }
  21. else if (chn->flags & CF_SHUTW) {
  22. - txn->req.err_state = txn->req.msg_state;
  23. + txn->rsp.err_state = txn->rsp.msg_state;
  24. txn->rsp.msg_state = HTTP_MSG_ERROR;
  25. s->be->be_counters.cli_aborts++;
  26. if (objt_server(s->target))
  27. --
  28. 2.13.0