Software /
code /
prosody
Changeset
6658:65563530375b
mod_s2s: Fire read timeout event on correct virtualhost for incoming connections
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 06 May 2015 13:35:34 +0200 |
parents | 6657:f1af4edd5722 |
children | 6665:e923d7cb8430 |
files | plugins/mod_s2s/mod_s2s.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua Tue May 05 12:21:32 2015 +0200 +++ b/plugins/mod_s2s/mod_s2s.lua Wed May 06 13:35:34 2015 +0200 @@ -625,8 +625,9 @@ function listener.onreadtimeout(conn) local session = sessions[conn]; + local host = session.host or session.to_host; if session then - return (hosts[session.host] or prosody).events.fire_event("s2s-read-timeout", { session = session }); + return (hosts[host] or prosody).events.fire_event("s2s-read-timeout", { session = session }); end end