Changeset

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
parents 7600:a18532076efe
children 7602:a4d5eec36a17
files net/server_epoll.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_epoll.lua	Thu Aug 18 17:15:32 2016 +0200
+++ b/net/server_epoll.lua	Thu Aug 18 17:15:52 2016 +0200
@@ -22,6 +22,8 @@
 local gettime = require "util.time".now;
 local createtable = require "util.table".create;
 
+assert(socket.tcp6 and socket.tcp4, "Incompatible LuaSocket version");
+
 local _ENV = nil;
 
 local cfg = {