Skip to content

Commit

Permalink
enlarge the timeout betwean the cores, in low-end setup it could affect
Browse files Browse the repository at this point in the history
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
  • Loading branch information
hhaim committed Feb 11, 2021
1 parent d7fe280 commit 7114ce1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/stx/common/trex_messaging.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,14 @@ template<typename T> class MsgReply {
m_pending = false;
}

T wait_for_reply(int timeout_ms = 1000, int backoff_ms = 1) {
T wait_for_reply(int timeout_ms = 7000, int backoff_ms = 1) {
int guard = timeout_ms;

while (is_pending()) {
guard -= backoff_ms;
if (guard < 0) {
throw TrexException("internal error: failed to get response from remote core for more than '" + std::to_string(timeout_ms) + "' ms");
}

delay(backoff_ms);
}

Expand Down

0 comments on commit 7114ce1

Please sign in to comment.