I recognized, that Openfire does not send a “”, if a client opens the stream with an invalid namespace (other than “http://etherx.jabber.org/streams”).
Openfire then just sends “</stream:stream>”.
According to the specification, it should send a stream error ("") and then close the stream.
This would also mean, it should first open the stream.
4.8.1 Stream Namespaces
See also section 220.127.116.11.
My parser can’t handle just an closing tag.
Can you fix it?