Mercurial > prosody-hg
comparison core/s2smanager.lua @ 269:3cfac0e5e6ca
Log how many queued stanzas we send
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Sat, 15 Nov 2008 08:38:25 +0500 |
| parents | 34b053c001f8 |
| children | 9439362caacc |
comparison
equal
deleted
inserted
replaced
| 268:fd0607c8f179 | 269:3cfac0e5e6ca |
|---|---|
| 203 function session.send(data) send_to_host(to, from, data); end | 203 function session.send(data) send_to_host(to, from, data); end |
| 204 | 204 |
| 205 | 205 |
| 206 if session.direction == "outgoing" then | 206 if session.direction == "outgoing" then |
| 207 if sendq then | 207 if sendq then |
| 208 session.log("debug", "sending queued stanzas across new outgoing connection to "..session.to_host); | 208 session.log("debug", "sending "..#sendq.." queued stanzas across new outgoing connection to "..session.to_host); |
| 209 for i, data in ipairs(sendq) do | 209 for i, data in ipairs(sendq) do |
| 210 send(data); | 210 send(data); |
| 211 sendq[i] = nil; | 211 sendq[i] = nil; |
| 212 end | 212 end |
| 213 session.sendq = nil; | 213 session.sendq = nil; |
