From 04120ba78f860691f7691699058498a1ca38e651 Mon Sep 17 00:00:00 2001 From: wangzhuowei Date: Tue, 28 Nov 2023 15:46:26 +0800 Subject: [PATCH] detach all time --- poll_default_linux.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/poll_default_linux.go b/poll_default_linux.go index a0087ee0..3e940ed4 100644 --- a/poll_default_linux.go +++ b/poll_default_linux.go @@ -178,10 +178,10 @@ func (p *defaultPoll) handler(events []epollevent) (closed bool) { totalRead += leftRead } // only close connection if no further read bytes - if totalRead == 0 { - p.appendHup(operator) - continue - } + //if totalRead == 0 { + p.appendHup(operator) + continue + //} } if triggerError { // Under block-zerocopy, the kernel may give an error callback, which is not a real error, just an EAGAIN.