Set default socket timeout to 3 seconds
This commit is contained in:
parent
795bc51da4
commit
76688d7611
|
@ -32,6 +32,7 @@ import threading
|
||||||
|
|
||||||
# Used for bound_interface
|
# Used for bound_interface
|
||||||
socket_socket = socket.socket
|
socket_socket = socket.socket
|
||||||
|
socket.setdefaulttimeout(3)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import xml.etree.cElementTree as ET
|
import xml.etree.cElementTree as ET
|
||||||
|
|
Loading…
Reference in New Issue