mirror of https://github.com/FluuxIO/go-xmpp
Increase size of XML decoder internal buffers
Since a transport (and a streamlogger) does not implement io.ByteReader xml.Decoder wraps it using `bufio.NewReader(transport)` so it can easily read bytes one at a time. This has the unfortuante effect of resulting in a panic if we try to parse a stanza that is larger than the default buffer size of 4096 bytes. To fix this we wrap the transport using `bufio.NewReaderSize()` with a much larger buffer size.pull/125/head
parent
ebb6e845bf
commit
0227596f90
Loading…
Reference in New Issue