Skip to content

Commit 334389a

Browse files
committed
Bug#37385923 routertest_integration_routing_sharing select_overlong times out
postfix for build-failures on windows. Change-Id: Ide5cc89e95286fad62ad11f89b3f6bfad421d9d4
1 parent 8cac325 commit 334389a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

router/src/routing/src/channel.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2525

2626
#include "channel.h"
2727

28+
#include <algorithm> // min
2829
#include <cassert>
2930

3031
#include <openssl/bio.h>
@@ -237,6 +238,9 @@ stdx::expected<size_t, std::error_code> Channel::read_to_plain(size_t sz) {
237238
while (sz > 0) {
238239
// read at most a SSL frame (16k) to avoid excessive resizes.
239240
//
241+
// Without the limitation, a 16Mbyte frame takes 150sec to transfer
242+
// if CMAKE_BUILD_TYPE is Debug due to disabled optimizations:
243+
//
240244
// | Debug | RelWithDebInfo
241245
// 1k | 2100ms | 256ms
242246
// 16k | 1966ms | 219ms

0 commit comments

Comments
 (0)