Comparison

net/server_epoll.lua @ 7601:ce20546d7714

net.server_epoll: Make sure a recent LuaSocket is avaliable
author Kim Alvefur <zash@zash.se>
date Thu, 18 Aug 2016 17:15:52 +0200
parent 7600:a18532076efe
child 7602:a4d5eec36a17
comparison
equal deleted inserted replaced
7600:a18532076efe 7601:ce20546d7714
19 local epoll = require "epoll"; 19 local epoll = require "epoll";
20 local socket = require "socket"; 20 local socket = require "socket";
21 local luasec = require "ssl"; 21 local luasec = require "ssl";
22 local gettime = require "util.time".now; 22 local gettime = require "util.time".now;
23 local createtable = require "util.table".create; 23 local createtable = require "util.table".create;
24
25 assert(socket.tcp6 and socket.tcp4, "Incompatible LuaSocket version");
24 26
25 local _ENV = nil; 27 local _ENV = nil;
26 28
27 local cfg = { 29 local cfg = {
28 read_timeout = 900; 30 read_timeout = 900;