From aa60cbc33cfc76cbd4ac827cb41bec555614562d Mon Sep 17 00:00:00 2001 From: admin <964472638@qq.com> Date: Fri, 10 Nov 2023 16:42:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0wepoll=20=E4=B8=8D=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E8=BE=B9=E7=BC=98=E8=A7=A6=E5=8F=91=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Network/Socket.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Network/Socket.cpp b/src/Network/Socket.cpp index 817fe28e0..cb47b2492 100644 --- a/src/Network/Socket.cpp +++ b/src/Network/Socket.cpp @@ -534,8 +534,9 @@ int Socket::onAccept(const SockNum::Ptr &sock, int event) noexcept { // emitErr(ex); https://github.com/ZLMediaKit/ZLMediaKit/issues/2946 ErrorL << "Accept socket failed: " << ex.what(); // 可能打开的文件描述符太多了:UV_EMFILE/UV_ENFILE -#if defined(HAS_EPOLL) - // 边缘触发,还需要手动再触发accept事件 +#if defined(HAS_EPOLL) && !defined(_WIN32) + // 边缘触发,还需要手动再触发accept事件, + //wepoll, Edge-triggered (`EPOLLET`) mode isn't supported. std::weak_ptr weak_self = shared_from_this(); _poller->doDelayTask(100, [weak_self, sock]() { if (auto strong_self = weak_self.lock()) {