[Standards] Detecting an ended file transfer

hrxi hrrrxi at gmail.com
Mon Jul 29 13:00:40 UTC 2019


Hi,

for XEP-0234: Jingle File Transfer
(https://xmpp.org/extensions/xep-0234.html), how is one supposed to
detect the end of a file transfer?

I currently see two methods:

1) The transport method has a way of closing the stream. This exists for
IBB, via the `<close>` element. It also exists for S5B, via closing the
TCP connection.

2) Counting the bytes until you receive as many bytes as promised by the
file offer. This works if the non-mandatory `<size>` tag is present in
the file offer.

Could the XEP be amended to clarify how to do this? If 2) is the
supposed method, could the XEP be changed so that the `<size>` tag is
mandatory for offering a file?

Conversations currently does 2). It closes the IBB but not the S5B which
is why this question even arose.

I posted a blog post on this matter and was asked to post it to this
mailing list.

Kind regards,
hrxi


More information about the Standards mailing list