[core] clear buffer after backend dechunk

(thx flynn)

clear buffer after backend dechunk if not sending chunked to client

x-ref:
  "Memory fragmentation with HTTP/2 enabled"
  https://redmine.lighttpd.net/issues/3084
personal/stbuehler/tests-path
Glenn Strauss 2021-09-09 16:12:37 -04:00
parent 9a37ba54d1
commit e97a5b7e49
1 changed files with 2 additions and 0 deletions

View File

@ -482,6 +482,8 @@ int http_chunk_decode_append_buffer(request_st * const r, buffer * const mem)
r->resp_send_chunked = 1;
return rc;
}
else
buffer_clear(mem);
return 0;
}