Software /
code /
prosody
Comparison
net/server_epoll.lua @ 9477:0738f5276e0a
net.server_epoll: Assert successful creation of util.poll handle
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 11 Oct 2018 18:53:15 +0200 |
parent | 9474:619ba78709a5 |
child | 9497:183ff7a8051b |
comparison
equal
deleted
inserted
replaced
9476:f3935aa4cc7e | 9477:0738f5276e0a |
---|---|
23 local createtable = require "util.table".create; | 23 local createtable = require "util.table".create; |
24 local inet = require "util.net"; | 24 local inet = require "util.net"; |
25 local inet_pton = inet.pton; | 25 local inet_pton = inet.pton; |
26 local _SOCKETINVALID = socket._SOCKETINVALID or -1; | 26 local _SOCKETINVALID = socket._SOCKETINVALID or -1; |
27 | 27 |
28 local poll = require "util.poll".new(); | 28 local poll = assert(require "util.poll".new()); |
29 | 29 |
30 local _ENV = nil; | 30 local _ENV = nil; |
31 -- luacheck: std none | 31 -- luacheck: std none |
32 | 32 |
33 local default_config = { __index = { | 33 local default_config = { __index = { |