fix issue #359
This commit is contained in:
parent
7026a5b3a4
commit
1481c8d7ea
|
@ -183,6 +183,10 @@ void httpCloseContextByApp(HttpContext *pContext) {
|
||||||
}
|
}
|
||||||
|
|
||||||
pthread_mutex_lock(&pContext->mutex);
|
pthread_mutex_lock(&pContext->mutex);
|
||||||
|
if (pContext->signature != pContext || pContext->fd <= 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
pContext->parsed = false;
|
pContext->parsed = false;
|
||||||
|
|
||||||
httpTrace("context:%p, fd:%d, ip:%s, app use finished, usedByEpoll:%d, usedByApp:%d, httpVersion:1.%d, keepAlive:%d",
|
httpTrace("context:%p, fd:%d, ip:%s, app use finished, usedByEpoll:%d, usedByApp:%d, httpVersion:1.%d, keepAlive:%d",
|
||||||
|
@ -208,6 +212,10 @@ void httpCloseContextByServer(HttpThread *pThread, HttpContext *pContext) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
pthread_mutex_lock(&pContext->mutex);
|
pthread_mutex_lock(&pContext->mutex);
|
||||||
|
if (pContext->signature != pContext || pContext->fd <= 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
pContext->usedByEpoll = 0;
|
pContext->usedByEpoll = 0;
|
||||||
pContext->parsed = false;
|
pContext->parsed = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue