Merge branch 'api-extension' of https://github.com/microsoft/mscclpp into api-extension

This commit is contained in:
Olli Saarikivi
2023-05-10 20:50:51 +00:00
2 changed files with 2 additions and 2 deletions

View File

@@ -137,7 +137,7 @@ void IBConnection::flush()
auto elapsed = timer.elapsed();
if (elapsed > MSCCLPP_POLLING_WAIT) {
throw Error("pollCq is stuck: waited for " + std::to_string(elapsed) + " seconds. Expected " +
throw Error("pollCq is stuck: waited for " + std::to_string(elapsed/1e6) + " seconds. Expected " +
std::to_string(numSignaledSends) + " signals",
ErrorCode::InternalError);
}

View File

@@ -2,7 +2,7 @@
#define MSCCLPP_CONNECTION_HPP_
// TODO(saemal): make this configurable
#define MSCCLPP_POLLING_WAIT 10000 // in microseconds
#define MSCCLPP_POLLING_WAIT 3e7 // in microseconds
#include "communicator.hpp"
#include "ib.hpp"