Comparison

net/server_event.lua @ 6852:626d8152b1ad

server_event: Add luacheck annotations
author Kim Alvefur <zash@zash.se>
date Fri, 25 Sep 2015 17:25:46 +0200
parent 6851:1f1bed8ebc41
child 6853:a2cc477eb19b
comparison
equal deleted inserted replaced
6851:1f1bed8ebc41 6852:626d8152b1ad
9 -- to do some of the above, use timeout events or something what will called from outside 9 -- to do some of the above, use timeout events or something what will called from outside
10 -- dont let garbagecollect eventcallbacks, as long they are running 10 -- dont let garbagecollect eventcallbacks, as long they are running
11 -- when using luasec, there are 4 cases of timeout errors: wantread or wantwrite during reading or writing 11 -- when using luasec, there are 4 cases of timeout errors: wantread or wantwrite during reading or writing
12 12
13 --]] 13 --]]
14 -- luacheck: ignore 212/self 431/err 211/ret
14 15
15 local SCRIPT_NAME = "server_event.lua" 16 local SCRIPT_NAME = "server_event.lua"
16 local SCRIPT_VERSION = "0.05" 17 local SCRIPT_VERSION = "0.05"
17 local SCRIPT_AUTHOR = "blastbeat" 18 local SCRIPT_AUTHOR = "blastbeat"
18 local LAST_MODIFIED = "2009/11/20" 19 local LAST_MODIFIED = "2009/11/20"
363 self._pattern = pattern; 364 self._pattern = pattern;
364 end 365 end
365 return self._pattern; 366 return self._pattern;
366 end 367 end
367 368
368 function interface_mt:set_send(new_send) 369 function interface_mt:set_send(new_send) -- luacheck: ignore 212
369 -- No-op, we always use the underlying connection's send 370 -- No-op, we always use the underlying connection's send
370 end 371 end
371 372
372 function interface_mt:starttls(sslctx, call_onconnect) 373 function interface_mt:starttls(sslctx, call_onconnect)
373 debug( "try to start ssl at client id:", self.id ) 374 debug( "try to start ssl at client id:", self.id )