Mercurial > prosody-hg
comparison core/sessionmanager.lua @ 959:e3db909065f2
sessionmanager, s2smanager, mod_component: Send reply </stream:stream> when client closes stream
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sun, 05 Apr 2009 20:06:39 +0100 |
| parents | a00b4269de70 |
| children | 5516f9e66482 |
comparison
equal
deleted
inserted
replaced
| 958:172fb9a73017 | 959:e3db909065f2 |
|---|---|
| 180 | 180 |
| 181 (session.log or log)("info", "Sent reply <stream:stream> to client"); | 181 (session.log or log)("info", "Sent reply <stream:stream> to client"); |
| 182 session.notopen = nil; | 182 session.notopen = nil; |
| 183 end | 183 end |
| 184 | 184 |
| 185 function streamclosed(session) | |
| 186 session.send("</stream:stream>"); | |
| 187 session.notopen = true; | |
| 188 end | |
| 189 | |
| 185 function send_to_available_resources(user, host, stanza) | 190 function send_to_available_resources(user, host, stanza) |
| 186 local count = 0; | 191 local count = 0; |
| 187 local to = stanza.attr.to; | 192 local to = stanza.attr.to; |
| 188 stanza.attr.to = nil; | 193 stanza.attr.to = nil; |
| 189 local h = hosts[host]; | 194 local h = hosts[host]; |
