comparison mod_s2s_auth_dane/mod_s2s_auth_dane.lua @ 1383:465e5d79551b

mod_s2s_auth_dane: Improve debug message and log it on the session
author Kim Alvefur <zash@zash.se>
date Thu, 10 Apr 2014 22:40:11 +0200
parents e3fe6c749bc3
children 6bd9681d54b7
comparison
equal deleted inserted replaced
1382:ba17268490b7 1383:465e5d79551b
112 -- dane_lookup(origin, origin.from_host); 112 -- dane_lookup(origin, origin.from_host);
113 local host_session = event.origin; 113 local host_session = event.origin;
114 host_session.log("debug", "Pausing connection until DANE lookup is completed"); 114 host_session.log("debug", "Pausing connection until DANE lookup is completed");
115 host_session.conn:pause() 115 host_session.conn:pause()
116 local function resume() 116 local function resume()
117 module:log("debug", "Resuming connection"); 117 host_session.log("debug", "DANE lookup completed, resuming connection");
118 host_session.conn:resume() 118 host_session.conn:resume()
119 end 119 end
120 if not dane_lookup(host_session, resume) then 120 if not dane_lookup(host_session, resume) then
121 resume(); 121 resume();
122 end 122 end