mod_auth_dovecot/auth_dovecot/sasl_dovecot.lib.lua
changeset 2865 afeb06e4cdea
parent 2802 e9ca7fd4ad06
child 4944 7406039021d8
equal deleted inserted replaced
2864:a7c2df6b2662 2865:afeb06e4cdea
   137 function method:send(...)
   137 function method:send(...)
   138 	local msg = t_concat({...}, "\t");
   138 	local msg = t_concat({...}, "\t");
   139 	if msg:sub(-1) ~= "\n" then
   139 	if msg:sub(-1) ~= "\n" then
   140 		msg = msg .. "\n"
   140 		msg = msg .. "\n"
   141 	end
   141 	end
   142 	module:log("debug", "sending %q", msg:sub(1,-2));
   142 	-- module:log("debug", "sending %q", msg:sub(1,-2));
   143 	local ok, err = self.conn:send(msg);
   143 	local ok, err = self.conn:send(msg);
   144 	if not ok then
   144 	if not ok then
   145 		log("error", "Could not write to socket: %s", err);
   145 		log("error", "Could not write to socket: %s", err);
   146 		if err == "closed" then
   146 		if err == "closed" then
   147 			conn = nil;
   147 			conn = nil;