Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nx9xu committed Jul 26, 2022
1 parent 777060a commit 997b097
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions webserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,7 @@ void WebServer::eventLoop()
//处理新到的客户连接
if (sockfd == m_listenfd)
{
bool flag = dealclinetdata();
if (false == flag)
continue;
dealclinetdata();
}
else if (events[i].events & (EPOLLRDHUP | EPOLLHUP | EPOLLERR))
{
Expand All @@ -413,7 +411,7 @@ void WebServer::eventLoop()
{
bool flag = dealwithsignal(timeout, stop_server);
if (false == flag)
LOG_ERROR("%s", "dealclientdata failure");
LOG_ERROR("%s", "dealwithsignal failure");
}
//处理客户连接上接收到的数据
else if (events[i].events & EPOLLIN)
Expand Down

0 comments on commit 997b097

Please sign in to comment.