diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2018-11-05 19:39:03 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2018-11-12 08:25:05 -0500 |
commit | c79bc31609c96a72c7cc989a78619198dee73d9b (patch) | |
tree | 2e19398dbb4ea0afdd7a75dc8d96173bb7132822 /src/mod_fastcgi.c | |
parent | 2df8f9ebf42e8dc5b9db0cc380e522cbfb5463a6 (diff) | |
download | lighttpd-git-c79bc31609c96a72c7cc989a78619198dee73d9b.tar.gz |
[mod_fastcgi] perf: reduce data copies
http_chunk_transfer_cqlen()
Diffstat (limited to 'src/mod_fastcgi.c')
-rw-r--r-- | src/mod_fastcgi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mod_fastcgi.c b/src/mod_fastcgi.c index 0becc6fa..e8b75bd2 100644 --- a/src/mod_fastcgi.c +++ b/src/mod_fastcgi.c @@ -409,9 +409,7 @@ static handler_t fcgi_recv_parse(server *srv, connection *con, struct http_respo hctx->send_content_body = 0; } } else if (hctx->send_content_body) { - buffer_string_set_length(srv->tmp_buf, 0); - fastcgi_get_packet_body(srv->tmp_buf, hctx, &packet); - if (0 != http_chunk_append_buffer(srv, con, srv->tmp_buf)) { + if (0 != http_chunk_transfer_cqlen(srv, con, hctx->rb, packet.len)) { /* error writing to tempfile; * truncate response or send 500 if nothing sent yet */ fin = 1; |