mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-12 21:52:07 +02:00
* src/ejabberd_c2s.erl: Enable zlib only over TCP
SVN Revision: 522
This commit is contained in:
parent
89e57d421e
commit
832279f1f2
|
@ -1,3 +1,7 @@
|
||||||
|
2006-03-25 Alexey Shchepin <alexey@sevcom.net>
|
||||||
|
|
||||||
|
* src/ejabberd_c2s.erl: Enable zlib only over TCP
|
||||||
|
|
||||||
2006-03-18 Alexey Shchepin <alexey@sevcom.net>
|
2006-03-18 Alexey Shchepin <alexey@sevcom.net>
|
||||||
|
|
||||||
* src/ejabberd_c2s.erl: Bugfix (thanks to Sergei Golovan)
|
* src/ejabberd_c2s.erl: Bugfix (thanks to Sergei Golovan)
|
||||||
|
|
|
@ -208,7 +208,7 @@ wait_for_stream({xmlstreamstart, _Name, Attrs}, StateData) ->
|
||||||
Zlib = StateData#state.zlib,
|
Zlib = StateData#state.zlib,
|
||||||
CompressFeature =
|
CompressFeature =
|
||||||
case Zlib andalso
|
case Zlib andalso
|
||||||
(SockMod /= ejabberd_zlib) of
|
(SockMod == gen_tcp) of
|
||||||
true ->
|
true ->
|
||||||
[{xmlelement, "compression",
|
[{xmlelement, "compression",
|
||||||
[{"xmlns", ?NS_FEATURE_COMPRESS}],
|
[{"xmlns", ?NS_FEATURE_COMPRESS}],
|
||||||
|
@ -516,7 +516,7 @@ wait_for_feature_request({xmlstreamelement, El}, StateData) ->
|
||||||
tls_enabled = true
|
tls_enabled = true
|
||||||
}};
|
}};
|
||||||
{?NS_COMPRESS, "compress"} when Zlib == true,
|
{?NS_COMPRESS, "compress"} when Zlib == true,
|
||||||
SockMod /= ejabberd_zlib ->
|
SockMod == gen_tcp ->
|
||||||
case xml:get_subtag(El, "method") of
|
case xml:get_subtag(El, "method") of
|
||||||
false ->
|
false ->
|
||||||
send_element(StateData,
|
send_element(StateData,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user