Skip to content

Commit d3ec09c

Browse files
committed
perf(http_proxy): stream the response to avoid memory bloat
1 parent b292d46 commit d3ec09c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gateway/src/apicast/http_proxy.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ local function forward_https_request(proxy_uri, uri, proxy_opts)
169169
return sock:send("HTTP/1.1 502 Bad Gateway")
170170
end
171171
else
172-
httpc:proxy_response(res)
172+
httpc:proxy_response(res, DEFAULT_CHUNKSIZE)
173173
httpc:set_keepalive()
174174
end
175175
else

0 commit comments

Comments
 (0)