Added server timeout

This commit is contained in:
Rob Lee 2020-04-07 19:59:20 +01:00
parent 0652ed92fa
commit 67d8b4665e
2 changed files with 3 additions and 5 deletions

View File

@ -65,4 +65,3 @@ Guage values taken from: https://wiki.teltonika-networks.com/view/Mobile_Signal_
## Todo ## Todo
* Webserver timeout and error response on not authing/locating router.

View File

@ -63,10 +63,9 @@ def prom_exporter():
return s.join(response) return s.join(response)
class GetHandler( class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
SimpleHTTPServer.SimpleHTTPRequestHandler
): timeout=5
def do_GET(self): def do_GET(self):
self.send_response(200) self.send_response(200)
self.end_headers() self.end_headers()