spec/scansion/disco_self.scs
author Kim Alvefur <zash@zash.se>
Sat, 23 Mar 2024 20:48:19 +0100
changeset 13465 c673ff1075bd
parent 13412 d7857ef7843a
permissions -rw-r--r--
mod_posix: Move everything to util.startup This allows greater control over the order of events. Notably, the internal ordering between daemonization, initialization of libunbound and setup of signal handling is sensitive. libunbound starts a separate thread for processing DNS requests. If this thread is started before signal handling has been set up, it will not inherit the signal handlers and instead behave as it would have before signal handlers were set up, i.e. cause the whole process to immediately exit. libunbound is usually initialized on the first DNS request, usually triggered by an outgoing s2s connection attempt. If daemonization happens before signals have been set up, signals may not be processed at all.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13412
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     1
# Basic login and initial presence
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     2
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     3
[Client] Romeo
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     4
	jid: discoverer@localhost
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     5
	password: password
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     6
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     7
---------
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     8
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     9
Romeo connects
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    10
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    11
Romeo sends:
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    12
	<iq type="get" id="info1">
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    13
		<query xmlns="http://jabber.org/protocol/disco#info"/>
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    14
	</iq>
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    15
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    16
Romeo receives:
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    17
	<iq type="result" id="info1">
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    18
		<query xmlns="http://jabber.org/protocol/disco#info" scansion:strict="false">
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    19
			<identity xmlns="http://jabber.org/protocol/disco#info" category="account" type="registered"/>
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    20
			<feature var="http://jabber.org/protocol/disco#info"/>
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    21
			<feature var="http://jabber.org/protocol/disco#items"/>
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    22
		</query>
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    23
	</iq>
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    24
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    25
Romeo disconnects
d7857ef7843a mod_disco: Advertise disco#info and #items on bare JIDs to fix #1664
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    26