sending a message to oneself puts ratmand into a spin
$ ratmand &
$ ratcat --register
$ echo "hello" | ratcat $(jq -r .addr ~/.config/ratcat/config)
now ratmand has 200% cpu usage
PID USER PRI NI VIRT RES SHR S CPU%▽MEM% TIME+ Command
3297403 yuka 20 0 1467M 7340 5688 S 190.0 0.0 6:34.86 result/bin/ratmand
3297424 yuka 20 0 1467M 7340 5688 S 51.5 0.0 1:19.08 result/bin/ratmand
3297420 yuka 20 0 1467M 7340 5688 R 48.0 0.0 1:15.45 result/bin/ratmand
3297422 yuka 20 0 1467M 7340 5688 R 46.8 0.0 1:25.02 result/bin/ratmand
3297418 yuka 20 0 1467M 7340 5688 R 44.1 0.0 1:17.26 result/bin/ratmand
The same also happens when sending a message between two local applications:
$ ratmand &
$ ratcat --register
$ first_address=$(jq -r .addr ~/.config/ratcat/config)
$ ratcat --register
$ second_address=$(jq -r .addr ~/.config/ratcat/config)
$ ratcat --listen & # listening on $second_address
$ echo "hello" | ratcat -s $first_address $second_address
# the message arrives, but ratman is in a spin again