Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
iso8583
/
iso8583-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0161e1d3
authored
Apr 09, 2019
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ISO8583 server dengan echo false tidak akan timeout
1 parent
1de191a2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
iso8583_web/scripts/forwarder.py
iso8583_web/scripts/forwarder.py
View file @
0161e1d
...
@@ -173,6 +173,17 @@ class RequestHandler(BaseRequestHandler, CommonConnection):
...
@@ -173,6 +173,17 @@ class RequestHandler(BaseRequestHandler, CommonConnection):
def
process
(
self
,
raw
):
def
process
(
self
,
raw
):
CommonConnection
.
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
):
def
close_because_timeout
(
self
):
self
.
log_timeout
()
self
.
log_timeout
()
BaseRequestHandler
.
close_because_timeout
(
self
)
BaseRequestHandler
.
close_because_timeout
(
self
)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment