xmpp-rs-mirror/tokio-xmpp
Emmanuel Gil Peyrot 6ccc5ccace tokio-xmpp: Poll packets in a loop
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.
2023-06-21 11:55:42 +00:00
..
examples RUST_LOG=debug can now be used in tokio-xmpp examples to see XMPP network traffic 2023-06-05 15:02:35 +00:00
src tokio-xmpp: Poll packets in a loop 2023-06-21 11:55:42 +00:00
.gitignore
build.rs
Cargo.toml tokio-xmpp: Add syntax highlighting to debug logs 2023-06-19 19:52:38 +02:00
ChangeLog tokio-xmpp: debug print stream:stream too 2023-06-21 12:21:52 +02:00
logo.svg
README.md

TODO

  • allow tls verify customization
  • more tests