python - have different socket.defaulttimeout for different threads? -


i use socket.setdefaulttimeout(x) set time out x seconds. have 2 threads (one main thread , thread) in main thread want socket timeout 5 seconds thread want 0.5 seconds.

whenever of these threads changes timeout, affects timeout whole program, there way have different socket timeout different threads in python ?


Comments