xmpp-rs/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 Prepare for merge: Move all tokio-xmpp files into tokio-xmpp/ 2019-10-18 14:16:01 +02:00
build.rs tokio-xmpp: add build script to work around build fail on rustc 1.48 2020-12-25 02:05:02 +01:00
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 Prepare for merge: Move all tokio-xmpp files into tokio-xmpp/ 2019-10-18 14:16:01 +02:00
README.md tokio-xmpp: remove obsolete TODOs 2020-03-16 00:11:52 +01:00

TODO

  • allow tls verify customization
  • more tests