I have no way to wake up a thread being blocked by poll.poll() function . Could someone help me ?
Use a timeout in your poll call, so it doesn't block indefinitely. N.B.: the timeout value is in milliseconds.
How to wake up a thread being blocked by select.poll.poll() function from another thread in socket programming in python?