aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-02-04 01:51:25 +0100
committerKim Alvefur <zash@zash.se>2018-02-04 01:51:25 +0100
commitb1235c60a71fe55ac329580a6792e04fba9a4d04 (patch)
tree284e796694d96d55a3f24db148b6f95290c768fe /net/server_select.lua
parent78c3f2328fd098579c036a5fc8b0cb5bf6fdc633 (diff)
downloadprosody-b1235c60a71fe55ac329580a6792e04fba9a4d04.tar.gz
prosody-b1235c60a71fe55ac329580a6792e04fba9a4d04.zip
Fix spelling throughout the codebase [codespell]
Diffstat (limited to 'net/server_select.lua')
-rw-r--r--net/server_select.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index 31c6306f..e1c8aefe 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -132,7 +132,7 @@ _fullservers = { } -- servers in a paused state while there are too many clients
_readlistlen = 0 -- length of readlist
_sendlistlen = 0 -- length of sendlist
-_timerlistlen = 0 -- lenght of timerlist
+_timerlistlen = 0 -- length of timerlist
_sendtraffic = 0 -- some stats
_readtraffic = 0
@@ -420,7 +420,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
bufferlen = bufferlen + #data
if bufferlen > maxsendlen then
_closelist[ handler ] = "send buffer exceeded" -- cannot close the client at the moment, have to wait to the end of the cycle
- handler.write = idfalse -- dont write anymore
+ handler.write = idfalse -- don't write anymore
return false
elseif socket and not _sendlist[ socket ] then
_sendlistlen = addsocket(_sendlist, socket, _sendlistlen)
@@ -531,7 +531,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
else
succ, err, count = false, "unexpected close", 0;
end
- if succ then -- sending succesful
+ if succ then -- sending successful
bufferqueuelen = 0
bufferlen = 0
_sendlistlen = removesocket( _sendlist, socket, _sendlistlen ) -- delete socket from writelist