From b173207211650a669aa1a09845be1a139875f8f6 Mon Sep 17 00:00:00 2001 From: vjabrayilov Date: Tue, 14 Nov 2023 22:15:06 -0500 Subject: [PATCH] increase sleep duration --- src/apps/msg_gen/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/msg_gen/main.cc b/src/apps/msg_gen/main.cc index 6bd8226f..7c6a53f1 100644 --- a/src/apps/msg_gen/main.cc +++ b/src/apps/msg_gen/main.cc @@ -302,7 +302,7 @@ void ClientLoop(void *channel_ctx, MachnetFlow *flow) { int64_t rx_window_slot = ClientRecvOneBlocking(&thread_ctx); if (rx_window_slot < 0) { - std::this_thread::sleep_for(std::chrono::microseconds(1)); + std::this_thread::sleep_for(std::chrono::microseconds(100)); rx_window_slot = ++FLAGS_msg_window; LOG(INFO) << "Server busy ... increasing window size to " << rx_window_slot;