awt[asciilifeform]: !!ticker btc usd
deedbot[asciilifeform]: $29,401
awt[asciilifeform]: Lol there appears not to be a system call to safely shutdown a udp socket causing recvfrom to return.
jonsykkel[asciilifeform]: doing blocking read?
awt[asciilifeform]: jonsykkel: yes, in a thread.
awt[asciilifeform]: seems I need to set a flag and send a udp packet to force it to check the flag and close the socket.
jonsykkel[asciilifeform]: cant simply poll()?
jonsykkel[asciilifeform]: thers a trick to make poll return at least
awt[asciilifeform]: jonsykkel: I don't see poll() in python's socket api. I could do something with select, but trying to avoid the CPU hit of running select.
jonsykkel[asciilifeform]: i se
asciilifeform: http://logs.bitdash.io/pest/2023-04-29#1025748 << this is traditionally handled by firing a packet at yerself
bitbot[asciilifeform]: Logged on 2023-04-29 14:01:03 awt[5]: Lol there appears not to be a system call to safely shutdown a udp socket causing recvfrom to return.
asciilifeform: unblocks.
asciilifeform notices that this was already said lel