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 d736e92b
authored
Apr 18, 2019
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
inherite is_loop
1 parent
e638f9f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
iso8583_web/scripts/forwarder.py
iso8583_web/scripts/forwarder.py
View file @
d736e92
...
@@ -129,6 +129,7 @@ class CommonConnection(Log):
...
@@ -129,6 +129,7 @@ class CommonConnection(Log):
self
.
log_info
(
'ISO8583 to raw {}'
.
format
([
raw
]))
self
.
log_info
(
'ISO8583 to raw {}'
.
format
([
raw
]))
def
process
(
self
,
raw
):
def
process
(
self
,
raw
):
self
.
log_info
(
'PROSES THREAD'
)
parser
=
Parser
(
self
,
raw
)
parser
=
Parser
(
self
,
raw
)
thread
=
create_thread
(
parser
.
run
)
thread
=
create_thread
(
parser
.
run
)
parser_threads
.
append
((
parser
,
thread
))
parser_threads
.
append
((
parser
,
thread
))
...
@@ -164,6 +165,9 @@ class RequestHandler(BaseRequestHandler, CommonConnection):
...
@@ -164,6 +165,9 @@ class RequestHandler(BaseRequestHandler, CommonConnection):
self
.
running
=
False
self
.
running
=
False
conn_mgr
.
add
(
self
)
conn_mgr
.
add
(
self
)
BaseRequestHandler
.
handle
(
self
)
BaseRequestHandler
.
handle
(
self
)
def
is_loop
(
self
):
sleep
(
0.1
)
return
self
.
running
def
on_receive_raw
(
self
,
raw
):
def
on_receive_raw
(
self
,
raw
):
self
.
log_receive_raw
(
raw
)
self
.
log_receive_raw
(
raw
)
...
...
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