'Can you write to a python socket that is blocked on recvfrom

So, suppose in one thread the UDP socket is hanging on the recvfrom() call, waiting for incoming messages. However, in another thread you would like to write through the socket to another address.

Is this possible? If not, what are my alternatives?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source