Skip to content

Commit

Permalink
Use heap instead stack memory
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Sep 24, 2023
1 parent efdf7fe commit 9aaba37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proxy/include/proxy/proxy_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2338,7 +2338,8 @@ namespace proxy {
}

const auto buf_size = 5 * 1024 * 1024;
char buf[buf_size];
auto bufs = std::make_unique<char[]>(buf_size);
char* buf = bufs.get();
std::streamsize total = 0;

do
Expand Down

0 comments on commit 9aaba37

Please sign in to comment.