On 2020-12-29 David Santiago <deman...@gmail.com> wrote:
> I need some help in debugging my script. Sometimes it hangs and i
> don't know why.

I'm pretty sure it hangs in the inner ``react``::

    if $line ~~ /^340/ {
        await $conn.print("[$consumer]: value $val\r\n");
    } else {
        done;
    }

Notice that if the client receives a 340, it sends stuff back to the
server, and *does not exit*. You may want to add a ``done`` after that
``await``.

Attached: a slightly-reworked version of your client, which I find
easier to read.

-- 
        Dakkar - <Mobilis in mobile>
        GPG public key fingerprint = A071 E618 DD2C 5901 9574
                                     6FE2 40EA 9883 7519 3F88
                            key id = 0x75193F88

Attachment: client.raku
Description: Binary data

Reply via email to