lizmat / IRC-Client

Raku module for building IRC (Internet Relay Chat) clients
Artistic License 2.0
14 stars 7 forks source link

Messages come in a wrong order if sent too rapidly #32

Open AlexDaniel opened 7 years ago

AlexDaniel commented 7 years ago

Example: https://irclog.perlgeek.de/perl6/2016-11-25#i_13629624

Adding a very small delay solves the problem (example in Bisectable).

I don't want to put sleep everywhere, I don't think this issue should be solved on my side. If that happens because of async IRC nature, then IRC::Client should have a configurable delay between the messages. If it is an issue with .print in IO::Socket::Async not doing it sequentially, then it's just a bug that has to be fixed.