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 e5501263
authored
Mar 30, 2019
by
Solo Group
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update forwarder
1 parent
7439c77e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
iso8583_web/scripts/forwarder.py
iso8583_web/scripts/forwarder.py
View file @
e550126
...
...
@@ -298,10 +298,8 @@ class Parser(Log):
def
run
(
self
):
from_iso
=
self
.
connection
.
job
.
raw_to_iso
(
self
.
raw
)
print
(
"RUN from_iso"
,
from_iso
)
self
.
log_decode
(
from_iso
)
iso
=
self
.
connection
.
job
.
process
(
from_iso
)
print
(
"RUN iso"
,
iso
)
if
iso
:
self
.
log_encode
(
iso
)
...
...
@@ -416,7 +414,6 @@ def web_job(conn, iso):
if
ip_port
not
in
web_response
:
continue
result
=
web_response
[
ip_port
]
print
(
"Win Job"
,
result
)
if
stan
in
result
:
iso
=
result
[
stan
]
del
result
[
stan
]
...
...
@@ -527,6 +524,7 @@ def usage(argv):
def
check_connection
():
log_info
(
"Check Connection"
)
for
ip_port
in
ip_conf
:
if
ip_port
in
conn_mgr
:
index
=
-
1
...
...
@@ -550,6 +548,7 @@ def check_connection():
def
check_job
():
log_info
(
"Check Job"
)
for
ip_port
,
connection
in
conn_mgr
:
if
not
connection
.
running
:
continue
...
...
@@ -571,6 +570,7 @@ def check_job():
def
check_parser
():
log_info
(
"Check Parser"
)
i
=
-
1
while
True
:
i
+=
1
...
...
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