Mercurial > prosody-hg
comparison 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 |
| parents | 72501e3c1427 |
| children | 600eee3c4752 |
comparison
equal
deleted
inserted
replaced
| 9992:9d6baacdd8e6 | 9993:02a41315d275 |
|---|---|
| 122 | 122 |
| 123 ----------------------------------// DEFINITION //-- | 123 ----------------------------------// DEFINITION //-- |
| 124 | 124 |
| 125 _server = { } -- key = port, value = table; list of listening servers | 125 _server = { } -- key = port, value = table; list of listening servers |
| 126 _readlist = { } -- array with sockets to read from | 126 _readlist = { } -- array with sockets to read from |
| 127 _sendlist = { } -- arrary with sockets to write to | 127 _sendlist = { } -- array with sockets to write to |
| 128 _timerlist = { } -- array of timer functions | 128 _timerlist = { } -- array of timer functions |
| 129 _socketlist = { } -- key = socket, value = wrapped socket (handlers) | 129 _socketlist = { } -- key = socket, value = wrapped socket (handlers) |
| 130 _readtimes = { } -- key = handler, value = timestamp of last data reading | 130 _readtimes = { } -- key = handler, value = timestamp of last data reading |
| 131 _writetimes = { } -- key = handler, value = timestamp of last data writing/sending | 131 _writetimes = { } -- key = handler, value = timestamp of last data writing/sending |
| 132 _closelist = { } -- handlers to close | 132 _closelist = { } -- handlers to close |
| 148 | 148 |
| 149 _checkinterval = 30 -- interval in secs to check idle clients | 149 _checkinterval = 30 -- interval in secs to check idle clients |
| 150 _sendtimeout = 60000 -- allowed send idle time in secs | 150 _sendtimeout = 60000 -- allowed send idle time in secs |
| 151 _readtimeout = 14 * 60 -- allowed read idle time in secs | 151 _readtimeout = 14 * 60 -- allowed read idle time in secs |
| 152 | 152 |
| 153 local is_windows = package.config:sub(1,1) == "\\" -- check the directory separator, to detemine whether this is Windows | 153 local is_windows = package.config:sub(1,1) == "\\" -- check the directory separator, to determine whether this is Windows |
| 154 _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 | 154 _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 |
| 155 _maxselectlen = luasocket._SETSIZE or 1024 -- But this still applies on Windows | 155 _maxselectlen = luasocket._SETSIZE or 1024 -- But this still applies on Windows |
| 156 | 156 |
| 157 _maxsslhandshake = 30 -- max handshake round-trips | 157 _maxsslhandshake = 30 -- max handshake round-trips |
| 158 | 158 |
