diff options
| author | levlam <levlam@telegram.org> | 2022-01-13 18:14:40 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2022-01-13 18:14:40 +0300 |
| commit | ca2cf957b0597c46f9d6ca8e375359d978b042a4 (patch) | |
| tree | eaa033508be0cf7dfa4acbfe71a44180cf8fae3b /benchmark/check_tls.cpp | |
| parent | 79745716158afb0e44937c3b1b9210f8461bd104 (diff) | |
check_tls: use static buffer.
Diffstat (limited to 'benchmark/check_tls.cpp')
| -rw-r--r-- | benchmark/check_tls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/check_tls.cpp b/benchmark/check_tls.cpp index 00151f241..f7fb1fecb 100644 --- a/benchmark/check_tls.cpp +++ b/benchmark/check_tls.cpp @@ -156,7 +156,7 @@ td::Result<TlsInfo> test_tls(const td::string &url) { size_t server_hello_length = 0; size_t encrypted_application_data_length_sum = 0; while (td::Time::now() < end_time) { - char buf[20000]; + static char buf[20000]; TRY_RESULT(res, socket.read(td::MutableSlice{buf, sizeof(buf)})); if (res > 0) { auto read_length = [&]() -> size_t { |
