Define a timeout for all http requests
This commit is contained in:
parent
6d26a13752
commit
a2b273d09b
13 changed files with 12 additions and 12 deletions
|
|
@ -132,7 +132,7 @@ def startSoutenance (msg):
|
|||
|
||||
|
||||
def getPage():
|
||||
conn = http.client.HTTPConnection(CONF.getNode("server")["ip"])
|
||||
conn = http.client.HTTPConnection(CONF.getNode("server")["ip"], timeout=10)
|
||||
try:
|
||||
conn.request("GET", CONF.getNode("server")["url"])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue