Software /
code /
prosody
Diff
net/server_select.lua @ 9993:02a41315d275
Fix various spelling mistakes [codespell]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 03 May 2019 20:54:24 +0200 |
parent | 9916:72501e3c1427 |
child | 10233:600eee3c4752 |
line wrap: on
line diff
--- a/net/server_select.lua Fri May 03 18:14:14 2019 +0200 +++ b/net/server_select.lua Fri May 03 20:54:24 2019 +0200 @@ -124,7 +124,7 @@ _server = { } -- key = port, value = table; list of listening servers _readlist = { } -- array with sockets to read from -_sendlist = { } -- arrary with sockets to write to +_sendlist = { } -- array with sockets to write to _timerlist = { } -- array of timer functions _socketlist = { } -- key = socket, value = wrapped socket (handlers) _readtimes = { } -- key = handler, value = timestamp of last data reading @@ -150,7 +150,7 @@ _sendtimeout = 60000 -- allowed send idle time in secs _readtimeout = 14 * 60 -- allowed read idle time in secs -local is_windows = package.config:sub(1,1) == "\\" -- check the directory separator, to detemine whether this is Windows +local is_windows = package.config:sub(1,1) == "\\" -- check the directory separator, to determine whether this is Windows _maxfd = (is_windows and math.huge) or luasocket._SETSIZE or 1024 -- max fd number, limit to 1024 by default to prevent glibc buffer overflow, but not on Windows _maxselectlen = luasocket._SETSIZE or 1024 -- But this still applies on Windows