mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2026-03-09 12:52:53 -07:00
Fixed decoder usage.
Decoders have internal buffering, and creating many on a single TCP connection can cause issues in parsing exchanged XML documents.
This commit is contained in:
@@ -119,7 +119,7 @@ func (s *Session) startTlsIfSupported(o Config) {
|
||||
return
|
||||
}
|
||||
|
||||
// If we do not allow cleartext connections, make it explicit that server do not support starttls
|
||||
// If we do not allow cleartext serverConnections, make it explicit that server do not support starttls
|
||||
if !o.Insecure {
|
||||
s.err = errors.New("XMPP server does not advertise support for starttls")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user