From 839a3bacc281f99c5e87439b9d03d64f1d2a37d2 Mon Sep 17 00:00:00 2001 From: gaodunqiao Date: Thu, 28 Dec 2017 17:48:13 +0800 Subject: [PATCH] Bugfix: redundant EPOLLOUT --- pink/src/worker_thread.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pink/src/worker_thread.cc b/pink/src/worker_thread.cc index c479376f..26c80833 100644 --- a/pink/src/worker_thread.cc +++ b/pink/src/worker_thread.cc @@ -190,18 +190,6 @@ void *WorkerThread::ThreadMain() { continue; } } - if (pfe->mask & EPOLLOUT) { - WriteStatus write_status = in_conn->SendReply(); - in_conn->set_last_interaction(now); - if (write_status == kWriteAll) { - in_conn->set_is_reply(false); - pink_epoll_->PinkModEvent(pfe->fd, 0, EPOLLIN); - } else if (write_status == kWriteHalf) { - continue; - } else if (write_status == kWriteError) { - should_close = 1; - } - } if ((pfe->mask & EPOLLERR) || (pfe->mask & EPOLLHUP) || should_close) { { slash::WriteLock l(&rwlock_);