projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65839b3
)
sessionmanager: Make session.send() return true unless there really is an error ...
author
Kim Alvefur
<zash@zash.se>
Mon, 21 Sep 2015 21:19:48 +0000
(23:19 +0200)
committer
Kim Alvefur
<zash@zash.se>
Mon, 21 Sep 2015 21:19:48 +0000
(23:19 +0200)
core/sessionmanager.lua
patch
|
blob
|
history
diff --git
a/core/sessionmanager.lua
b/core/sessionmanager.lua
index 4b014d18cd5aea4002bbee1e67985291e709a0bb..67ceb7396af7640451e7e91546aa07f94be4e3b9 100644
(file)
--- a/
core/sessionmanager.lua
+++ b/
core/sessionmanager.lua
@@
-37,9
+37,15
@@
function new_session(conn)
if t then
t = filter("bytes/out", tostring(t));
if t then
- return w(conn, t);
+ local ret, err = w(conn, t);
+ if not ret then
+ session.log("debug", "Write-error: %s", tostring(err));
+ return false;
+ end
+ return true;
end
end
+ return true;
end
session.ip = conn:ip();
local conn_name = "c2s"..tostring(session):match("[a-f0-9]+$");