TD-1291
This commit is contained in:
parent
0015100d2b
commit
5b208fd479
|
@ -131,8 +131,6 @@ HttpContext *httpCreateContext(int32_t fd) {
|
||||||
HttpContext *httpGetContext(void *ptr) {
|
HttpContext *httpGetContext(void *ptr) {
|
||||||
uint64_t handleVal = (uint64_t)ptr;
|
uint64_t handleVal = (uint64_t)ptr;
|
||||||
HttpContext **ppContext = taosCacheAcquireByKey(tsHttpServer.contextCache, &handleVal, sizeof(HttpContext *));
|
HttpContext **ppContext = taosCacheAcquireByKey(tsHttpServer.contextCache, &handleVal, sizeof(HttpContext *));
|
||||||
ASSERT(ppContext);
|
|
||||||
ASSERT(*ppContext);
|
|
||||||
|
|
||||||
if (ppContext) {
|
if (ppContext) {
|
||||||
HttpContext *pContext = *ppContext;
|
HttpContext *pContext = *ppContext;
|
||||||
|
|
|
@ -341,7 +341,7 @@ static bool httpReadData(HttpContext *pContext) {
|
||||||
|
|
||||||
if (!pParser->parsed) {
|
if (!pParser->parsed) {
|
||||||
httpTrace("context:%p, fd:%d, read not finished", pContext, pContext->fd);
|
httpTrace("context:%p, fd:%d, read not finished", pContext, pContext->fd);
|
||||||
continue;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
httpDebug("context:%p, fd:%d, bodyLen:%d", pContext, pContext->fd, pParser->body.pos);
|
httpDebug("context:%p, fd:%d, bodyLen:%d", pContext, pContext->fd, pParser->body.pos);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue