Skip to content

Commit

Permalink
Bugfix: redundant EPOLLOUT
Browse files Browse the repository at this point in the history
  • Loading branch information
gaodunqiao committed Dec 28, 2017
1 parent 1dbf150 commit 839a3ba
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pink/src/worker_thread.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
Expand Down

0 comments on commit 839a3ba

Please sign in to comment.