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.

26 lines
883 B

  1. From 716e4d7a5d773607d87d5521f5943cff019bcd97 Mon Sep 17 00:00:00 2001
  2. From: Glenn Strauss <gstrauss@gluelogic.com>
  3. Date: Mon, 30 Nov 2020 19:31:05 -0500
  4. Subject: [PATCH] [core] fix lighttpd -1 one-shot with pipes
  5. Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
  6. ---
  7. src/server.c | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/src/server.c b/src/server.c
  10. index 83c0241f..a781027e 100644
  11. --- a/src/server.c
  12. +++ b/src/server.c
  13. @@ -356,7 +356,7 @@ static int server_oneshot_read_cq(connection *con, chunkqueue *cq, off_t max_byt
  14. /* temporary set con->fd to oneshot_fd (fd input) rather than outshot_fdout
  15. * (lighttpd generally assumes operation on sockets, so this is a kludge) */
  16. int fd = con->fd;
  17. - con->fd = oneshot_fd;
  18. + con->fd = oneshot_fdn->fd;
  19. int rc = oneshot_read_cq(con, cq, max_bytes);
  20. con->fd = fd;
  21. --
  22. 2.28.0