allow timeout to 0 to eanble immediate exit (#125)

This commit is contained in:
Chen Qin 2019-10-22 14:38:55 -07:00 committed by Nan Zhu
parent d22e0809a8
commit 2f25347168

View File

@ -219,7 +219,7 @@ void AllreduceBase::SetParam(const char *name, const char *val) {
} }
if (!strcmp(name, "rabit_timeout_sec")) { if (!strcmp(name, "rabit_timeout_sec")) {
timeout_sec = atoi(val); timeout_sec = atoi(val);
utils::Assert(timeout_sec > 0, "rabit_timeout_sec should be greater than 0 second"); utils::Assert(timeout_sec >= 0, "rabit_timeout_sec should be non negative second");
} }
} }
/*! /*!