Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mitogen
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
mitogen
Commits
f3e51a7b
Commit
f3e51a7b
authored
Feb 14, 2018
by
David Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: CALL_FUNCTION should check auth_id, not src_id
parent
f001eba2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
mitogen/core.py
mitogen/core.py
+2
-2
mitogen/unix.py
mitogen/unix.py
+1
-0
No files found.
mitogen/core.py
View file @
f3e51a7b
...
...
@@ -1247,8 +1247,8 @@ class ExternalContext(object):
for
msg
in
self
.
channel
:
data
=
msg
.
unpickle
(
throw
=
False
)
LOG
.
debug
(
'_dispatch_calls(%r)'
,
data
)
if
msg
.
src
_id
not
in
mitogen
.
parent_ids
:
LOG
.
warning
(
'CALL_FUNCTION from non-parent %r'
,
msg
.
src
_id
)
if
msg
.
auth
_id
not
in
mitogen
.
parent_ids
:
LOG
.
warning
(
'CALL_FUNCTION from non-parent %r'
,
msg
.
auth
_id
)
modname
,
klass
,
func
,
args
,
kwargs
=
data
try
:
...
...
mitogen/unix.py
View file @
f3e51a7b
...
...
@@ -78,6 +78,7 @@ class Listener(mitogen.core.BasicStream):
context
=
mitogen
.
master
.
Context
(
self
.
_router
,
context_id
)
stream
=
mitogen
.
core
.
Stream
(
self
.
_router
,
context_id
)
stream
.
accept
(
sock
.
fileno
(),
sock
.
fileno
())
stream
.
auth_id
=
mitogen
.
context_id
self
.
_router
.
register
(
context
,
stream
)
sock
.
send
(
struct
.
pack
(
'>LL'
,
context_id
,
mitogen
.
context_id
))
sock
.
close
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment