Skip to content

Commit

Permalink
Check in 1.7.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gwanglst committed Jul 20, 2021
1 parent 5eaec12 commit 5b50039
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/http/ntwkiolink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,11 @@ int NtwkIOLink::shutdown()
if (!isPeerShutdown())
{
releaseHandler();
if (m_iHeaderToSend > 0)
{
m_iov.clear();
m_iHeaderToSend = 0;
}
if (getState() == HIOS_CONNECTED)
setState(HIOS_CLOSING);
MultiplexerFactory::getMultiplexer()->continueWrite(this);
Expand Down
9 changes: 4 additions & 5 deletions src/modules/cache/cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -821,10 +821,10 @@ static int32_t getVaryFlag(const lsi_session_t *session, CacheConfig *pConfig)
if (isVaryHdrBypassed((*iter)->c_str(), (*iter)->len()))
continue;

g_api->log(session, LSI_LOG_WARN, "[%s] vary request header"
g_api->log(session, LSI_LOG_INFO, "[%s] vary request header"
" \"%.*s\" not defined!\n",
ModuleNameStr, (*iter)->len(), (*iter)->c_str());
return LS_FAIL;
continue;
}
flag |= (1 << index);
}
Expand Down Expand Up @@ -1981,12 +1981,11 @@ static int createEntry(lsi_param_t *rec)
if (iVaryFlag == LS_FAIL)
{
/**
* will stop the hook chain and cause 500 error
* will stop the hook chain
*/
g_api->set_status_code(rec->session, 500);
clearHooks(rec->session);
g_api->log(rec->session, LSI_LOG_DEBUG,
"[%s]createEntry set 500 error and returned.\n",
"[%s] getVaryFlag failure, cancel cache.\n",
ModuleNameStr);
return 0;
}
Expand Down

0 comments on commit 5b50039

Please sign in to comment.