diff options
author | Kim Alvefur <zash@zash.se> | 2021-04-14 15:21:13 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-04-14 15:21:13 +0200 |
commit | a4a008e046e060eb3d0d697b2a1445a62120d91d (patch) | |
tree | 2fb59979edbb978aa1c3f780864ee1e43c0ae9c4 /spec/scansion/pep_nickname.scs | |
parent | 19746da12f6193ace11f67afc0ba188121758150 (diff) | |
download | prosody-a4a008e046e060eb3d0d697b2a1445a62120d91d.tar.gz prosody-a4a008e046e060eb3d0d697b2a1445a62120d91d.zip |
util.xmppstream: Send <?xml?> declaration in same call as stream open
If network_settings.opportunistic_writes is enabled then this would
previously have resulted in two socket writes, and possibly two packets
being sent. This caused some issues in older versions of Gajim, which
apparently expected the stream opening in the first packet, and thus it
could not connect.
With this change and opportunistic_writes enabled, the first packet
should contain both the xml declaration and the stream open tag.
Without opportunistic_writes, there should be no observable change.
Tested with Gajim 1.1.2 (on same machine). Unsure if loopback behaves
differently than the network here.
Diffstat (limited to 'spec/scansion/pep_nickname.scs')
0 files changed, 0 insertions, 0 deletions