6ccc5ccace
This needs to be a loop in order to ignore packets we don’t care about, or those we want to handle elsewhere. Returning something isn’t correct in those two cases because it would signal to tokio that the XMPPStream is also done, while there could be additional packets waiting for us. The proper solution is thus a loop which we exit once we have something to return. Fixes a deadlock when we ignore some packets. |
||
---|---|---|
.. | ||
examples | ||
src | ||
.gitignore | ||
build.rs | ||
Cargo.toml | ||
ChangeLog | ||
logo.svg | ||
README.md |
TODO
- allow tls verify customization
- more tests