I need to set timeout on python's socket recv method. How to do it?
You can use socket.settimeout() which accepts a integer argument representing number of seconds. For example, socket.settimeout(1) will set the timeout to 1 second
How to set timeout on python's socket recv method?