Added exponential backoff when errors occur in sicspoll

This commit is contained in:
2016-11-24 13:49:07 +01:00
parent e5ecf5218e
commit 3fda3d9864
3 changed files with 37 additions and 4 deletions

View File

@ -36,7 +36,6 @@ static int pollHdb(struct __POLLDRIV *self, SConnection * pCon)
assert(node != NULL);
self->nextPoll = time(NULL) + self->pollIntervall;
if (GetHipadabaPar(node, &newVal, pCon) == 1) {
ReleaseHdbValue(&newVal);
return 1;
@ -84,7 +83,6 @@ static int pollScript(struct __POLLDRIV *self, SConnection * pCon)
int status;
Tcl_Interp *pTcl = InterpGetTcl(pServ->pSics);
self->nextPoll = time(NULL) + self->pollIntervall;
MacroPush(pCon);
status = Tcl_Eval(pTcl, (char *) self->objPointer);