Mercurial > prosody-hg
comparison plugins/mod_compression.lua @ 2289:8938265695c9
mod_compression: Removing forgotten debugging output.
| author | Tobias Markmann <tm@ayena.de> |
|---|---|
| date | Tue, 01 Dec 2009 00:21:32 +0100 |
| parents | 3c17fc919f7b |
| children | c6bed51c6733 |
comparison
equal
deleted
inserted
replaced
| 2288:3c17fc919f7b | 2289:8938265695c9 |
|---|---|
| 37 module:hook("s2s-stream-features", | 37 module:hook("s2s-stream-features", |
| 38 function (data) | 38 function (data) |
| 39 local session, features = data.session, data.features; | 39 local session, features = data.session, data.features; |
| 40 -- FIXME only advertise compression support when TLS layer has no compression enabled | 40 -- FIXME only advertise compression support when TLS layer has no compression enabled |
| 41 if not session.compressed then | 41 if not session.compressed then |
| 42 module:log("debug", "s2s-stream-features YAY YAHOO") | |
| 43 features:add_child(compression_stream_feature); | 42 features:add_child(compression_stream_feature); |
| 44 end | 43 end |
| 45 end | 44 end |
| 46 ); | 45 ); |
| 47 | 46 |
| 48 -- S2Sout handling aka the client perspective in the S2S connection | 47 -- S2Sout handling aka the client perspective in the S2S connection |
| 49 module:hook_stanza(xmlns_stream, "features", | 48 module:hook_stanza(xmlns_stream, "features", |
| 50 function (session, stanza) | 49 function (session, stanza) |
| 51 if not session.compressed then | 50 if not session.compressed then |
| 52 module:log("debug", "FEATURES: "..stanza:pretty_print()) | |
| 53 -- does remote server support compression? | 51 -- does remote server support compression? |
| 54 local comp_st = stanza:child_with_name("compression"); | 52 local comp_st = stanza:child_with_name("compression"); |
| 55 if comp_st then | 53 if comp_st then |
| 56 -- do we support the mechanism | 54 -- do we support the mechanism |
| 57 for a in comp_st:children() do | 55 for a in comp_st:children() do |
