changeset 3389:c458f940b011

mod_auth_external: Use blocking mode by default as non-blocking is experimental but available in 0.11.x
author Kim Alvefur <zash@zash.se>
date Sat, 01 Dec 2018 15:22:49 +0100 (2018-12-01)
parents c5e8042b174c
children 788200f5f481
files mod_auth_external/mod_auth_external.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_auth_external/mod_auth_external.lua	Sat Dec 01 12:10:31 2018 +0100
+++ b/mod_auth_external/mod_auth_external.lua	Sat Dec 01 15:22:49 2018 +0100
@@ -21,7 +21,7 @@
 local script_type = module:get_option_string("external_auth_protocol", "generic");
 local command = module:get_option_string("external_auth_command", "");
 local read_timeout = module:get_option_number("external_auth_timeout", 5);
-local blocking = module:get_option_boolean("external_auth_blocking", not(have_async and server.event and lpty.getfd));
+local blocking = module:get_option_boolean("external_auth_blocking", true); -- non-blocking is very experimental
 local auth_processes = module:get_option_number("external_auth_processes", 1);
 
 assert(script_type == "ejabberd" or script_type == "generic",