On 28.12.2017 22:41, Ruslan N. Marchenko wrote:
On 28.12.2017 20:41, Lance Stout wrote:
Both sides locally terminated the session, so both sides should be in
the ENDED
state. Period. Full stop.
That is a perfectly legal sequence of actions to take, but this
particular
combination suggests that the Jingle library could be improved here.
The spec
mandates that the _receiving_ side of a content-reject or
content-remove send
a session-terminate if there are no remaining contents. The,
unfortunately
unwritten, implication is that the _sending_ side should just go
ahead and send a
session-terminate if it is going to reject or remove the last
content. This whole
scenario would have been avoided if Telepathy behaved that way.
Yes, that was my initial thought to check disposition=session and
is-last-content condition and abort entire session. Just tried to
minimize interaction with jingle library and not to oversee session
state from content perspective. Will also require Wocky patching.
Seems even decline is not helping here
<<<
(telepathy-gabble:1771): wocky-DEBUG: _end_element_ns: Received stanza
* iq xmlns='jabber:client' nsp0='jabber:server'
id='dd6643d4-58d5-428f-8602-8d8bec1122d8' type='set' lang='de'
to='[email protected]/Emush' from='[email protected]/gajim.R8P5E74S'
* jingle xmlns='urn:xmpp:jingle:1' action='session-initiate'
sid='5e641eb5-a93e-4f4c-91a5-8d35ec344d54'
initiator='[email protected]/gajim.R8P5E74S'
* content name='fileIYV4MRTJW2FDPCX0' creator='initiator'
* description xmlns='urn:xmpp:jingle:apps:file-transfer:3'
* offer
* file
* name
"lpcx"
* date
"2015-01-24T22:37:13"
* size
"267"
* desc
* transport xmlns='urn:xmpp:jingle:transports:ibb:1'
block-size='4096' sid='3469de9b-3c09-478b-8194-5f7bca189de7'
>>>
(telepathy-gabble:1771): wocky-DEBUG: _write_node_tree: Serializing tree:
* iq xmlns='jabber:client' type='set' to='[email protected]/gajim.R8P5E74S'
id='3307134724'
* jingle xmlns='urn:xmpp:jingle:1'
initiator='[email protected]/gajim.R8P5E74S'
sid='5e641eb5-a93e-4f4c-91a5-8d35ec344d54' action='session-info'
* ringing xmlns='urn:xmpp:jingle:apps:rtp:info:1'
>>>
(telepathy-gabble:1771): wocky-DEBUG: _write_node_tree: Serializing tree:
* iq xmlns='jabber:client' type='result' from='[email protected]/Emush'
to='[email protected]/gajim.R8P5E74S' id='dd6643d4-58d5-428f-8602-8d8bec1122d8'
>>>
(telepathy-gabble:1771): wocky-DEBUG: _write_node_tree: Serializing tree:
* iq xmlns='jabber:client' type='set' to='[email protected]/gajim.R8P5E74S'
id='4101041570'
* jingle xmlns='urn:xmpp:jingle:1'
initiator='[email protected]/gajim.R8P5E74S'
sid='5e641eb5-a93e-4f4c-91a5-8d35ec344d54' action='session-terminate'
* reason
* decline
<<<
(telepathy-gabble:1771): wocky-DEBUG: _end_element_ns: Received stanza
* iq xmlns='jabber:client' id='3307134724' nsp0='jabber:server'
type='result' lang='de' to='[email protected]/Emush'
from='[email protected]/gajim.R8P5E74S'
<<<
(telepathy-gabble:1771): wocky-DEBUG: _end_element_ns: Received stanza
* iq xmlns='jabber:client' lang='de' type='result' nsp0='jabber:server'
id='4101041570' to='[email protected]/Emush' from='[email protected]/gajim.R8P5E74S'
and in GUI transfer is still hanging *sigh*.
However when client is registering channel handler for file-transfer
channel the transfer is ok and completes successfully.
Regards,
Ruslan
_______________________________________________
Standards mailing list
Info: https://mail.jabber.org/mailman/listinfo/standards
Unsubscribe: [email protected]
_______________________________________________