Merge branch 'develop' into hotfix/sangshuduo/TD-2984-combine-taosdemo-and-taosdemox
This commit is contained in:
commit
c34bd9e47a
|
|
@ -155,6 +155,7 @@ void httpReleaseContext(HttpContext *pContext, bool clearRes) {
|
||||||
|
|
||||||
if (clearRes) {
|
if (clearRes) {
|
||||||
httpClearParser(pContext->parser);
|
httpClearParser(pContext->parser);
|
||||||
|
memset(&pContext->singleCmd, 0, sizeof(HttpSqlCmd));
|
||||||
}
|
}
|
||||||
|
|
||||||
HttpContext **ppContext = pContext->ppContext;
|
HttpContext **ppContext = pContext->ppContext;
|
||||||
|
|
|
||||||
|
|
@ -229,7 +229,7 @@ static int32_t httpOnParseHeaderField(HttpParser *parser, const char *key, const
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (strncasecmp(key, "Connection: ", 12) == 0) {
|
else if (strncasecmp(key, "Connection", 10) == 0) {
|
||||||
if (strncasecmp(val, "Keep-Alive", 10) == 0) {
|
if (strncasecmp(val, "Keep-Alive", 10) == 0) {
|
||||||
parser->keepAlive = HTTP_KEEPALIVE_ENABLE;
|
parser->keepAlive = HTTP_KEEPALIVE_ENABLE;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue