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
|
## Todo
|
||||||
|
|
||||||
* Webserver timeout and error response on not authing/locating router.
|
|
||||||
|
@ -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()
|
||||||
|
Reference in New Issue
Block a user