Closed mdosch closed 5 months ago
i also face this issue
me too
I made some changes and to the library and now this seems to be no more the case with the current development version. @ridhodo and @cevin can you confirm?
If the stream is closed there should be no more reading on a closed connection but Recv() will return an error (io.EOF) instead.
Dear mattn,
I have a goroutine where I run Recv() to receive stanzas and e.g. reply to IQs. Sometimes I get the following output when closing my program:
It would be nice if go-xmpp would stop reading on the connection via Recv() function before closing the connection on Close() or would provide a way to cancel Recv() (if that's possible).
Best regards, Martin