Diff

net/server_epoll.lua @ 9381:80be543a3785

net.server_epoll: Watching instead of registering, seems more understandable
author Kim Alvefur <zash@zash.se>
date Mon, 24 Sep 2018 19:47:53 +0200
parent 9321:146dc1e4c7ff
child 9382:31a2be28729c
line wrap: on
line diff
--- a/net/server_epoll.lua	Mon Sep 24 17:46:51 2018 +0200
+++ b/net/server_epoll.lua	Mon Sep 24 19:47:53 2018 +0200
@@ -271,7 +271,7 @@
 	end
 	self._wantread, self._wantwrite = r, w;
 	fds[fd] = self;
-	log("debug", "Registered %s", self);
+	log("debug", "Watching %s", self);
 	return true;
 end
 
@@ -306,7 +306,7 @@
 	end
 	self._wantread, self._wantwrite = nil, nil;
 	fds[fd] = nil;
-	log("debug", "Unregistered %s", self);
+	log("debug", "Unwatched %s", self);
 	return true;
 end