Skip to content

Commit

Permalink
Check in 1.6.21.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gwanglst committed Apr 6, 2021
1 parent 9dc951c commit 482e5be
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
17 changes: 10 additions & 7 deletions src/http/eventdispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,15 @@ static void processTimer()
DateTime::s_curTimeUs = tv.tv_usec;
NtwkIOLink::setPrevToken(NtwkIOLink::getToken());
NtwkIOLink::setToken(tv.tv_usec / (1000000 / TIMER_PRECISION));
QuicEngine *pQuicEngine = HttpServer::getInstance().getQuicEngine();
if (pQuicEngine)
pQuicEngine->onTimer();
if (NtwkIOLink::getToken() < NtwkIOLink::getPrevToken())
HttpServer::getInstance().onTimer();
MultiplexerFactory::getMultiplexer()->timerExecute();
if (NtwkIOLink::getToken() != NtwkIOLink::getPrevToken())
{
QuicEngine *pQuicEngine = HttpServer::getInstance().getQuicEngine();
if (pQuicEngine)
pQuicEngine->onTimer();
if (NtwkIOLink::getToken() < NtwkIOLink::getPrevToken())
HttpServer::getInstance().onTimer();
MultiplexerFactory::getMultiplexer()->timerExecute();
}
}


Expand Down Expand Up @@ -376,6 +379,7 @@ int EventDispatcher::linger(int listenerStopped, int timeout)
#ifdef LS_HAS_RTSIG
SigEventDispatcher::getInstance().processSigEvent();
#endif
processTimer();

if (pQuicEngine)
pQuicEngine->processEvents();
Expand All @@ -396,7 +400,6 @@ int EventDispatcher::linger(int listenerStopped, int timeout)
if (HttpSignals::gotSigAlarm())
{
HttpSignals::resetEvents();
processTimer();
}
if (HttpSignals::gotSigChild())
HttpServer::cleanPid();
Expand Down
4 changes: 1 addition & 3 deletions src/main/httpserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -926,12 +926,10 @@ void HttpServerImpl::onTimerSecond()
{
HttpRespHeaders::updateDateHeader();
HttpLog::onTimer();
ClientCache::getClientCache()->onTimer();
m_vhosts.onTimer();
if (m_lStartTime > 0)
{
ClientCache::getClientCache()->onTimer();
generateRTReport();
}

ServerInfo::getServerInfo()->setAdnsOp(1);
Adns::getInstance().trimCache();
Expand Down
2 changes: 1 addition & 1 deletion src/main/lshttpdmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
/***
* Do not change the below format, it will be set correctly while packing the code
*/
#define BUILDTIME " (built: Thu Apr 1 02:33:32 UTC 2021)"
#define BUILDTIME " (built: Tue Apr 6 13:20:57 UTC 2021)"

#define GlobalServerSessionHooks (LsiApiHooks::getServerSessionHooks())

Expand Down

0 comments on commit 482e5be

Please sign in to comment.