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