[jdev] File Transfer Interoperability

Sergei Golovan sgolovan at nes.ru
Wed Aug 8 00:29:08 CDT 2007


On 8/8/07, Peter Saint-Andre <stpeter at jabber.org> wrote:
>
> 3. IBB (XEP-0047) is a great fallback if all else fails.

IBB couldn't be a great fallback. It's very inconvenient to use in the
fillowing circumstances (which don't so rarely happen):

1) JID A offers file to JID B and waits for the answer (note that to
answer, B must return an IQ result, and the time interval might be
quite long).

2) JID A decides to abort file transfer and closes the
file-transfer-window-or-whatever-GUI-she-has.

3) JID B replies with IQ result, but
        a) File transfer doesn't start (A aborted it)
        b) JID B will NEVER know about A aborted file transfer and
will stuck with file-receiving-GUI forever since there's no mechanism
to recognize this unwilling to transfer.

Wouldn't it better to add an extra query from B to A after stream
negotiation part? If A doesn't want to send file anymore, she will
return error to B.

Another possibility is to let JID B to ask any next file chunk
(instead of pushing file in IQ set query, B sends IQ get query and
receives a chunk in IQ result).

Cheers!
-- 
Sergei Golovan



More information about the JDev mailing list