Skip to content

Commit

Permalink
also fixing the timeout for flush
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Oct 13, 2023
1 parent ff5291e commit 4d93a7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/connection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ void IBConnection::flush(int64_t timeoutUsec) {
}

auto elapsed = timer.elapsed();
if ((timeoutUsec >= 0) && (elapsed * 1e3 > timeoutUsec)) {
throw Error("pollCq is stuck: waited for " + std::to_string(elapsed / 1e3) + " seconds. Expected " +
if ((timeoutUsec >= 0) && (elapsed > timeoutUsec)) {
throw Error("pollCq is stuck: waited for " + std::to_string(elapsed / 1e6) + " seconds. Expected " +
std::to_string(numSignaledSends) + " signals",
ErrorCode::InternalError);
}
Expand Down

0 comments on commit 4d93a7b

Please sign in to comment.