socket操作nio notify未变更时,nio notify CAS操作失败导致无响应然后超时关闭问题
parent
7c58b147ca
commit
f92c221193
|
|
@ -762,6 +762,11 @@ static void *dio_thread_entrance(void* arg)
|
||||||
{
|
{
|
||||||
while ((pTask=blocked_queue_pop(&(pContext->queue))) != NULL)
|
while ((pTask=blocked_queue_pop(&(pContext->queue))) != NULL)
|
||||||
{
|
{
|
||||||
|
if (FC_ATOMIC_GET(pTask->nio_stages.notify) != SF_NIO_STAGE_NONE) {
|
||||||
|
if ((blocked_queue_push(&(pContext->queue), pTask)) == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
((StorageClientInfo *)pTask->arg)->deal_func(pTask);
|
((StorageClientInfo *)pTask->arg)->deal_func(pTask);
|
||||||
storage_release_task(pTask);
|
storage_release_task(pTask);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue