Mercurial > prosody-hg
comparison net/server_epoll.lua @ 8555:4f0f5b49bb03
vairious: Add annotation when an empty environment is set [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 28 Feb 2018 20:06:26 +0100 |
| parents | 1fcefc16a55d |
| children | e7d4344e0fea |
comparison
equal
deleted
inserted
replaced
| 8554:12a68e0d0ecf | 8555:4f0f5b49bb03 |
|---|---|
| 26 local _SOCKETINVALID = socket._SOCKETINVALID or -1; | 26 local _SOCKETINVALID = socket._SOCKETINVALID or -1; |
| 27 | 27 |
| 28 assert(socket.tcp6 and socket.tcp4, "Incompatible LuaSocket version"); | 28 assert(socket.tcp6 and socket.tcp4, "Incompatible LuaSocket version"); |
| 29 | 29 |
| 30 local _ENV = nil; | 30 local _ENV = nil; |
| 31 -- luacheck: std none | |
| 31 | 32 |
| 32 local default_config = { __index = { | 33 local default_config = { __index = { |
| 33 read_timeout = 900; | 34 read_timeout = 900; |
| 34 write_timeout = 7; | 35 write_timeout = 7; |
| 35 tcp_backlog = 128; | 36 tcp_backlog = 128; |
