Software /
code /
prosody
Annotate
spec/scansion/version.scs @ 12462:11765f0605ec
mod_s2s: Store real stanzas in session.sendq, rather than strings
This is the "right" thing to do. Strings were more memory-efficient, but
e.g. bypassed stanza filters at reconnection time. Also not being stanzas
prevents us from potential future work, such as merging sendq with mod_smacks.
Regarding performance: we should counter the probable negative effect of this
change with other positive changes that are desired anyway - e.g. a limit on
the size of the sendq, improved in-memory representation of stanzas, s2s
backoff (e.g. if a remote server is persistently unreachable, cache this
failure for a while and don't just keep forever queuing stanzas for it).
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 23 Mar 2022 15:25:22 +0000 |
parent | 10729:dbce2b94a7eb |
rev | line source |
---|---|
10729 | 1 # XEP-0092: Software Version / mod_version |
2 | |
3 [Client] Romeo | |
4 password: password | |
5 jid: romeo@localhost/dfaZpuxV | |
6 | |
7 ----- | |
8 | |
9 Romeo connects | |
10 | |
11 Romeo sends: | |
12 <iq id='lx2' to='localhost' type='get'> | |
13 <query xmlns='jabber:iq:version'/> | |
14 </iq> | |
15 | |
16 # Version string would vary so we can't do an exact match atm | |
17 # Inclusion of <os/> is disabled in the config, it should be absent | |
18 Romeo receives: | |
19 <iq id='lx2' from='localhost' type='result'> | |
20 <query xmlns='jabber:iq:version' scansion:strict='true'> | |
21 <name>Prosody</name> | |
22 <version scansion:strict='false'/> | |
23 </query> | |
24 </iq> | |
25 | |
26 | |
27 Romeo disconnects |