moonbridge

diff moonbridge_http.lua @ 280:1a4f89f4c712

Modified behavior of moonbridge_io.signalsocket(...); Fixed usage of moonbridge_io.signalsocket(...) in moonbridge_http module
author jbe
date Tue Jun 06 21:58:26 2017 +0200 (2017-06-06)
parents dec24bd2592c
children 2fe69234cbe9
line diff
     1.1 --- a/moonbridge_http.lua	Tue Jun 06 20:19:09 2017 +0200
     1.2 +++ b/moonbridge_http.lua	Tue Jun 06 21:58:26 2017 +0200
     1.3 @@ -203,10 +203,10 @@
     1.4    local response_timeout       = default("response_timeout", 3600)
     1.5    local drain_timeout          = default("drain_timeout", 2)
     1.6    local poll = options.poll_function or moonbridge_io.poll
     1.7 -  -- install SIGTERM handler:
     1.8 -  local sigterm_socket = moonbridge_io.signalsocket("TERM")
     1.9    -- return socket handler:
    1.10    return function(socket)
    1.11 +    -- install SIGTERM handler and initialize some variables:
    1.12 +    local sigterm_socket = moonbridge_io.signalsocket("TERM")
    1.13      local socket_set = {[socket] = true}  -- used for poll function
    1.14      local socket_term_set = {             -- used for poll function
    1.15        [socket] = true,

Impressum / About Us