Changeset

11804:22825cb5dcd8

net.server_epoll: Don't immediately destroy upon getting closed on read Instead try to write any remaining buffered data. If the write attempt also fails with "closed" then there's nothing we can do and the socket is gone. This reverts what appears to be a mistakenly included part of c8aa66595072 Thanks jonas’ for noticing
author Kim Alvefur <zash@zash.se>
date Wed, 15 Sep 2021 18:39:37 +0200
parents 11803:024b44ad5651
children 11805:2327e03d1f8d
files net/server_epoll.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_epoll.lua	Wed Sep 15 15:34:57 2021 +0200
+++ b/net/server_epoll.lua	Wed Sep 15 18:39:37 2021 +0200
@@ -460,7 +460,7 @@
 				self:debug("Read error, closing (%s)", err);
 			end
 			self:on("disconnect", err);
-			self:destroy()
+			self:close();
 			return;
 		end
 	end