socks5 filetransfer: invalid error on socks stream negotiation failure
I was trying to send file from Psi to Gajim. Unfortunately something went wrong with s5b part and connection failed. Gajim according to XEP had to send item-not-found error but instead Psi received
\<iq xmlns="jabber:client" to="email@example.com/dizzynb" type="error" id="ft_116e"> \<error code="404">Could not connect to given hosts\</error> \</iq>
Moreover ft_116e is not even iq id. It's file transfer stream id.
Steps to reproduce
- Take Gajim 0.16.5 and the latest Psi (preferable from git).
- Try to send file from Psi to Gajim
- Make sure s5b is in use.
OS version: Gentoo Linux
s5b part is fixed in Psi. So to reproduce it you have to ensure s5b is going to fail. (disable xmpp proxies, close ports etc)