Skip to content

Commit

Permalink
fix change tarsnode start server timeout default time(60000)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanshudong committed Oct 27, 2023
1 parent 7af5791 commit f966581
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions NodeServer/CommandLoad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,8 @@ int CommandLoad::updateConfigFile(string& sResult)
_serverObjectPtr->setMainClass(tConf.get("/tars/application/server<mainclass>", ""));
_serverObjectPtr->setClassPath(tConf.get("/tars/application/server<classpath>", ""));
_serverObjectPtr->setEnv(tConf.get("/tars/application/server<env>", ""));
_serverObjectPtr->setHeartTimeout(TC_Common::strto<int>(tConf.get("/tars/application/server<hearttimeout>", "")));
_serverObjectPtr->setActivatingTimeout(TC_Common::strto<int>(tConf.get("/tars/application/server<activating-timeout>", "")));
_serverObjectPtr->setHeartTimeout(TC_Common::strto<int>(tConf.get("/tars/application/server<hearttimeout>", "45000")));
_serverObjectPtr->setActivatingTimeout(TC_Common::strto<int>(tConf.get("/tars/application/server<activating-timeout>", "60000")));
_serverObjectPtr->setPackageFormat(tConf.get("/tars/application/server<packageFormat>", "tgz"));

_serverObjectPtr->setVolumes(tConf.getDomainMap("/tars/application/container/volumes"));
Expand Down
2 changes: 1 addition & 1 deletion NodeServer/ServerObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ bool ServerObject::isStartTimeOut()
Lock lock(*this);
int64_t now = TNOWMS;

int timeout=_activatingTimeout >0 ? _activatingTimeout : 11000;
int timeout=_activatingTimeout >0 ? _activatingTimeout : 30000;

if (now - _startTime >= timeout && now - _keepAliveTime >= timeout)
{
Expand Down

0 comments on commit f966581

Please sign in to comment.