Added server timeout
This commit is contained in:
parent
0652ed92fa
commit
67d8b4665e
@ -65,4 +65,3 @@ Guage values taken from: https://wiki.teltonika-networks.com/view/Mobile_Signal_
|
||||
|
||||
## Todo
|
||||
|
||||
* Webserver timeout and error response on not authing/locating router.
|
||||
|
@ -63,10 +63,9 @@ def prom_exporter():
|
||||
return s.join(response)
|
||||
|
||||
|
||||
class GetHandler(
|
||||
SimpleHTTPServer.SimpleHTTPRequestHandler
|
||||
):
|
||||
class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
||||
|
||||
timeout=5
|
||||
def do_GET(self):
|
||||
self.send_response(200)
|
||||
self.end_headers()
|
||||
|
Reference in New Issue
Block a user