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 0f83a43d
authored
Mar 31, 2019
by
Aplikasi Samsat Banten
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
live
1 parent
e5501263
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
iso8583_web/scripts/forwarder.py
iso8583_web/scripts/forwarder.py
View file @
0f83a43
...
@@ -117,6 +117,7 @@ class CommonConnection(Log):
...
@@ -117,6 +117,7 @@ class CommonConnection(Log):
self
.
log_info
(
msg
)
self
.
log_info
(
msg
)
def
log_timeout
(
self
):
def
log_timeout
(
self
):
self
.
log_error
(
"DBUG > COmmond"
)
self
.
log_close
(
'timeout'
)
self
.
log_close
(
'timeout'
)
def
log_raw_to_iso
(
self
,
raw
):
def
log_raw_to_iso
(
self
,
raw
):
...
@@ -231,6 +232,7 @@ class Client(BaseClient, CommonConnection):
...
@@ -231,6 +232,7 @@ class Client(BaseClient, CommonConnection):
CommonConnection
.
process
(
self
,
raw
)
CommonConnection
.
process
(
self
,
raw
)
def
close_because_timeout
(
self
):
def
close_because_timeout
(
self
):
self
.
log_error
(
"DEBUG -> CLIENT"
)
self
.
log_timeout
()
self
.
log_timeout
()
BaseClient
.
close_because_timeout
(
self
)
BaseClient
.
close_because_timeout
(
self
)
...
@@ -357,7 +359,6 @@ def conn_by_name(name):
...
@@ -357,7 +359,6 @@ def conn_by_name(name):
found_conn
=
None
found_conn
=
None
for
ip_port
,
conn
in
conn_mgr
:
for
ip_port
,
conn
in
conn_mgr
:
ip
,
port
=
ip_port
.
split
(
':'
)
ip
,
port
=
ip_port
.
split
(
':'
)
print
(
"DEBUG>>"
,
ip
,
port
,
conf
[
'ip'
])
if
conf
[
'ip'
]
!=
ip
:
if
conf
[
'ip'
]
!=
ip
:
continue
continue
port
=
int
(
port
)
port
=
int
(
port
)
...
...
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