[init varaible]
This commit is contained in:
parent
6e4c0b638d
commit
fcca57d8da
|
@ -46,6 +46,7 @@ void httpCreateSession(HttpContext *pContext, void *taos) {
|
|||
}
|
||||
|
||||
HttpSession session;
|
||||
memset(&session, 0, sizeof(HttpSession));
|
||||
session.taos = taos;
|
||||
session.expire = (int)taosGetTimestampSec() + server->sessionExpire;
|
||||
session.access = 1;
|
||||
|
@ -199,4 +200,4 @@ void httpProcessSessionExpire(void *handle, void *tmrId) {
|
|||
HttpServer *pServer = (HttpServer *)handle;
|
||||
httpRemoveExpireSessions(pServer);
|
||||
taosTmrReset(httpProcessSessionExpire, 60000, pServer, pServer->timerHandle, &pServer->expireTimer);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue