From f261a77d8e362f05e83121921f5c1774ead93267 Mon Sep 17 00:00:00 2001 From: masterLv <909173273@qq.com> Date: Tue, 10 Dec 2024 10:23:55 +0800 Subject: [PATCH] fix socket fd reclose Signed-off-by: masterLv <909173273@qq.com> --- pyftpdlib/handlers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyftpdlib/handlers.py b/pyftpdlib/handlers.py index c1ae74f6..8e123424 100644 --- a/pyftpdlib/handlers.py +++ b/pyftpdlib/handlers.py @@ -604,6 +604,7 @@ def readable(self): def handle_connect(self): """Called when connection is established.""" self.del_channel() + self._fileno = None if self._idler is not None and not self._idler.cancelled: self._idler.cancel() if not self.cmd_channel.connected: