Changeset

8542:8c39ec8e6018

net.server_epoll: Spelling writeable -> writable
author Kim Alvefur <zash@zash.se>
date Sat, 24 Feb 2018 14:39:36 +0100
parents 8541:8186114329d6
children 8543:0e1d8f2f02bf
files net/server_epoll.lua
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_epoll.lua	Sat Feb 24 14:36:44 2018 +0100
+++ b/net/server_epoll.lua	Sat Feb 24 14:39:36 2018 +0100
@@ -333,7 +333,7 @@
 end
 
 -- Called when socket is writable
-function interface:onwriteable()
+function interface:onwritable()
 	local buffer = self.writebuffer;
 	local data = t_concat(buffer);
 	local ok, err, partial = self.conn:send(data);
@@ -403,7 +403,7 @@
 	self:setwritetimeout(false);
 	self:setreadtimeout(false);
 	self.onreadable = noop;
-	self.onwriteable = noop;
+	self.onwritable = noop;
 	self.destroy = noop;
 	self.close = noop;
 	self.on = noop;
@@ -434,7 +434,7 @@
 		conn:settimeout(0);
 		self.conn = conn;
 		self.ondrain = nil;
-		self.onwriteable = interface.tlshandskake;
+		self.onwritable = interface.tlshandskake;
 		self.onreadable = interface.tlshandskake;
 		self:setflags(true, true);
 		self:setwritetimeout(cfg.handshake_timeout);
@@ -447,7 +447,7 @@
 	local ok, err = self.conn:dohandshake();
 	if ok then
 		log("debug", "TLS handshake on %s complete", tostring(self));
-		self.onwriteable = nil;
+		self.onwritable = nil;
 		self.onreadable = nil;
 		self._tls = true;
 		self:on("status", "ssl-handshake-complete");
@@ -635,7 +635,7 @@
 					conn:onreadable();
 				end
 				if w then
-					conn:onwriteable();
+					conn:onwritable();
 				end
 			else
 				log("debug", "Removing unknown fd %d", fd);
@@ -679,7 +679,7 @@
 			getfd = function () return fd; end;
 			callback = callback;
 			onreadable = onevent;
-			onwriteable = onevent;
+			onwritable = onevent;
 			close = function (self)
 				self:setflags(false, false);
 				fds[fd] = nil;