# HG changeset patch # User Matthew Wild # Date 1294723889 0 # Node ID 103da0201867060c533311103ad2d697645fb3b0 # Parent 8792da53e5036c292fd99a967cfa4420a940ddff# Parent 65482a852c4dfe1347ac9ed86ed6cc9391f32ded Merge 0.8->trunk diff -r 8792da53e503 -r 103da0201867 net/server_event.lua --- a/net/server_event.lua Tue Jan 11 04:22:45 2011 +0000 +++ b/net/server_event.lua Tue Jan 11 05:31:29 2011 +0000 @@ -221,12 +221,12 @@ self.eventhandshake = nil return -1 end - debug( "error during ssl handshake:", err ) if err == "wantwrite" then event = EV_WRITE elseif err == "wantread" then event = EV_READ else + debug( "ssl handshake error:", err ) self.fatalerror = err end end diff -r 8792da53e503 -r 103da0201867 net/server_select.lua --- a/net/server_select.lua Tue Jan 11 04:22:45 2011 +0000 +++ b/net/server_select.lua Tue Jan 11 05:31:29 2011 +0000 @@ -530,7 +530,6 @@ _readlistlen = addsocket(_readlist, client, _readlistlen) return true else - out_put( "server.lua: error during ssl handshake: ", tostring(err) ) if err == "wantwrite" and not wrote then _sendlistlen = addsocket(_sendlist, client, _sendlistlen) wrote = true @@ -538,6 +537,7 @@ _readlistlen = addsocket(_readlist, client, _readlistlen) read = true else + out_put( "server.lua: ssl handshake error: ", tostring(err) ) break; end --coroutine_yield( handler, nil, err ) -- handshake not finished diff -r 8792da53e503 -r 103da0201867 util/datamanager.lua --- a/util/datamanager.lua Tue Jan 11 04:22:45 2011 +0000 +++ b/util/datamanager.lua Tue Jan 11 05:31:29 2011 +0000 @@ -115,7 +115,7 @@ if not data then local mode = lfs.attributes(getpath(username, host, datastore), "mode"); if not mode then - log("debug", "Failed to load "..datastore.." storage ('"..ret.."') for user: "..(username or "nil").."@"..(host or "nil")); + log("debug", "Assuming empty "..datastore.." storage ('"..ret.."') for user: "..(username or "nil").."@"..(host or "nil")); return nil; else -- file exists, but can't be read -- TODO more detailed error checking and logging? @@ -207,7 +207,7 @@ if not data then local mode = lfs.attributes(getpath(username, host, datastore, "list"), "mode"); if not mode then - log("debug", "Failed to load "..datastore.." storage ('"..ret.."') for user: "..(username or "nil").."@"..(host or "nil")); + log("debug", "Assuming empty "..datastore.." storage ('"..ret.."') for user: "..(username or "nil").."@"..(host or "nil")); return nil; else -- file exists, but can't be read -- TODO more detailed error checking and logging? diff -r 8792da53e503 -r 103da0201867 util/sasl/anonymous.lua --- a/util/sasl/anonymous.lua Tue Jan 11 04:22:45 2011 +0000 +++ b/util/sasl/anonymous.lua Tue Jan 11 05:31:29 2011 +0000 @@ -16,7 +16,7 @@ local log = require "util.logger".init("sasl"); local generate_uuid = require "util.uuid".generate; -module "anonymous" +module "sasl.anonymous" --========================= --SASL ANONYMOUS according to RFC 4505 @@ -43,4 +43,4 @@ registerMechanism("ANONYMOUS", {"anonymous"}, anonymous); end -return _M; \ No newline at end of file +return _M; diff -r 8792da53e503 -r 103da0201867 util/sasl/digest-md5.lua --- a/util/sasl/digest-md5.lua Tue Jan 11 04:22:45 2011 +0000 +++ b/util/sasl/digest-md5.lua Tue Jan 11 05:31:29 2011 +0000 @@ -24,7 +24,7 @@ local log = require "util.logger".init("sasl"); local generate_uuid = require "util.uuid".generate; -module "digest-md5" +module "sasl.digest-md5" --========================= --SASL DIGEST-MD5 according to RFC 2831 @@ -240,4 +240,4 @@ registerMechanism("DIGEST-MD5", {"plain"}, digest); end -return _M; \ No newline at end of file +return _M; diff -r 8792da53e503 -r 103da0201867 util/sasl/plain.lua --- a/util/sasl/plain.lua Tue Jan 11 04:22:45 2011 +0000 +++ b/util/sasl/plain.lua Tue Jan 11 05:31:29 2011 +0000 @@ -15,7 +15,7 @@ local saslprep = require "util.encodings".stringprep.saslprep; local log = require "util.logger".init("sasl"); -module "plain" +module "sasl.plain" -- ================================ -- SASL PLAIN according to RFC 4616 diff -r 8792da53e503 -r 103da0201867 util/sasl/scram.lua --- a/util/sasl/scram.lua Tue Jan 11 04:22:45 2011 +0000 +++ b/util/sasl/scram.lua Tue Jan 11 05:31:29 2011 +0000 @@ -24,7 +24,7 @@ local char = string.char; local byte = string.byte; -module "scram" +module "sasl.scram" --========================= --SASL SCRAM-SHA-1 according to RFC 5802