Mercurial > prosody-modules
comparison mod_limits/mod_limits.lua @ 2885:88b16084eda7
mod_limits: Add debug logging just before we feed data into stream
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 20 Feb 2018 14:59:03 +0000 |
| parents | 55a7ef2fb628 |
| children | 1bb2a90398d3 |
comparison
equal
deleted
inserted
replaced
| 2884:16e9f37b3f82 | 2885:88b16084eda7 |
|---|---|
| 68 if not session.conn then return; end | 68 if not session.conn then return; end |
| 69 if throttle:peek(#outstanding_data) then | 69 if throttle:peek(#outstanding_data) then |
| 70 session.log("debug", "Resuming paused session"); | 70 session.log("debug", "Resuming paused session"); |
| 71 session.conn:resume(); | 71 session.conn:resume(); |
| 72 end | 72 end |
| 73 session.log("debug", "mod_limits feeding %d bytes of delayed data into stream", #outstanding_data); | |
| 73 -- Handle what we can of the outstanding data | 74 -- Handle what we can of the outstanding data |
| 74 session.data(outstanding_data); | 75 session.data(outstanding_data); |
| 75 end); | 76 end); |
| 76 end | 77 end |
| 77 end | 78 end |
