Software /
code /
prosody
Comparison
net/server_event.lua @ 8314:1d2149d84c72
net.server_event: Add "libevent" to backend description
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 09 Oct 2017 02:22:33 +0200 |
parent | 7810:cdb5dd9f35c0 |
child | 8384:4a5c6f6214ee |
comparison
equal
deleted
inserted
replaced
8313:21466b778bf1 | 8314:1d2149d84c72 |
---|---|
771 base:loopexit(); | 771 base:loopexit(); |
772 end | 772 end |
773 end | 773 end |
774 | 774 |
775 local function get_backend() | 775 local function get_backend() |
776 return base:method(); | 776 return "libevent " .. base:method(); |
777 end | 777 end |
778 | 778 |
779 -- We need to hold onto the events to stop them | 779 -- We need to hold onto the events to stop them |
780 -- being garbage-collected | 780 -- being garbage-collected |
781 local signal_events = {}; -- [signal_num] -> event object | 781 local signal_events = {}; -- [signal_num] -> event object |