Commit 0161e1d3 by Owo Sugiana

ISO8583 server dengan echo false tidak akan timeout

1 parent 1de191a2
......@@ -173,6 +173,17 @@ class RequestHandler(BaseRequestHandler, CommonConnection):
def process(self, raw):
CommonConnection.process(self, raw)
# Override BaseRequestHandler.set_timeout()
def set_timeout(self):
if self.conf['echo']:
BaseRequestHandler.set_timeout(self)
# Override BaseRequestHandler.is_timeout()
def is_timeout(self):
if not self.conf['echo']:
return False
return BaseRequestHandler.is_timeout(self)
def close_because_timeout(self):
self.log_timeout()
BaseRequestHandler.close_because_timeout(self)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!