sessionmanager: Change error for reaching resource limit from 'conflict' to 'resource-constraint' during session bind.

Sat, 22 May 2010 05:53:27 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Sat, 22 May 2010 05:53:27 +0500
changeset 3089
69fb1cb6b551
parent 3088
a233aa051125
child 3090
f14d2962f32c

sessionmanager: Change error for reaching resource limit from 'conflict' to 'resource-constraint' during session bind.

core/sessionmanager.lua file | annotate | diff | comparison | revisions
--- a/core/sessionmanager.lua	Sat May 22 05:52:24 2010 +0500
+++ b/core/sessionmanager.lua	Sat May 22 05:53:27 2010 +0500
@@ -136,7 +136,7 @@
 		local sessions = hosts[session.host].sessions[session.username].sessions;
 		local limit = config_get(session.host, "core", "max_resources") or 10;
 		if #sessions >= limit then
-			return nil, "cancel", "conflict", "Resource limit reached; only "..limit.." resources allowed";
+			return nil, "cancel", "resource-constraint", "Resource limit reached; only "..limit.." resources allowed";
 		end
 		if sessions[resource] then
 			-- Resource conflict

mercurial