Hi! I'm rereading XEP-0047 (In-band bytestreams) and it seems to me that the way a stream is supposed to be closed (section 2) doesn't play well with bidirectionality (section 3).
Consider scenario when a bidirectional stream is open, the first party has sent all its data. So, it's natural to send closing stanza. After that the remaining data from the second party will be lost because the stream has to be considered invalid after closing it by one side. In theory the other side may just delay the answer to the closing stanza and send all remaining data first, but it seems to be a bit ugly to me (I don't like long delays between a request and a response to it). So, are my concerns real, or I missed something obvious? Cheers! -- Sergei Golovan
