Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
ab158e86
Commit
ab158e86
authored
Jul 09, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle setting results on Delays who'd protocol were never set
Because races
parent
9ef630e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/ZEO/asyncio/server.py
src/ZEO/asyncio/server.py
+4
-2
No files found.
src/ZEO/asyncio/server.py
View file @
ab158e86
...
@@ -165,11 +165,13 @@ class Delay(object):
...
@@ -165,11 +165,13 @@ class Delay(object):
def
reply
(
self
,
obj
):
def
reply
(
self
,
obj
):
self
.
sent
=
'reply'
self
.
sent
=
'reply'
if
self
.
protocol
:
self
.
protocol
.
send_reply
(
self
.
msgid
,
obj
)
self
.
protocol
.
send_reply
(
self
.
msgid
,
obj
)
def
error
(
self
,
exc_info
):
def
error
(
self
,
exc_info
):
self
.
sent
=
'error'
self
.
sent
=
'error'
logger
.
error
(
"Error raised in delayed method"
,
exc_info
=
exc_info
)
logger
.
error
(
"Error raised in delayed method"
,
exc_info
=
exc_info
)
if
self
.
protocol
:
self
.
protocol
.
send_error
(
self
.
msgid
,
exc_info
[
1
])
self
.
protocol
.
send_error
(
self
.
msgid
,
exc_info
[
1
])
def
__repr__
(
self
):
def
__repr__
(
self
):
...
...
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