Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please consider the following formatting changes to #12787 #272

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Framework/Core/src/SendingPolicy.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@ std::vector<SendingPolicy> SendingPolicy::createDefaultPolicies()
// We count the number of consecutively dropped messages.
// If we have more than 10, we switch to a completely
// non-blocking approach.
int64_t timeout = 50;
int64_t timeout = 100;
if (state.droppedMessages == 10 + 1) {
LOG(warning) << "Failed to send 10 messages with 10ms timeout in a row, switching to completely non-blocking mode.";
}
if (state.droppedMessages == 0) {
timeout = 50;
timeout = 100;
}
if (state.droppedMessages > 10) {
timeout = 0;
}
int64_t result = info.channel.Send(parts, timeout);
int64_t result = info.channel.Send(parts, timeout * (state.droppedMessages + 1));
if (result >= 0) {
state.droppedMessages = 0;
} else if (state.droppedMessages < std::numeric_limits<decltype(state.droppedMessages)>::max()) {
Expand Down
Loading