net.server_select: Restore dependency on LuaSec to soft for tests

server_select is used in e.g. storagemanager tests, and some of the CI
runners are lacking LuaSec, which resulted in failures.
This commit is contained in:
Kim Alvefur 2022-04-27 21:45:36 +02:00
parent c90b2eca9d
commit 75a15e67f6

View file

@ -47,17 +47,15 @@ local coroutine_yield = coroutine.yield
--// extern libs //--
local has_luasec, luasec = pcall ( require , "ssl" )
local luasocket = use "socket" or require "socket"
local luasocket_gettime = luasocket.gettime
local inet = require "util.net";
local inet_pton = inet.pton;
local sslconfig = require "util.sslconfig";
local tls_impl = require "net.tls_luasec";
local has_luasec, tls_impl = pcall(require, "net.tls_luasec");
--// extern lib methods //--
local ssl_wrap = ( has_luasec and luasec.wrap )
local socket_bind = luasocket.bind
local socket_select = luasocket.select