Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StackExchange.Redis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
StackExchange.Redis
Commits
5183f1d4
Commit
5183f1d4
authored
Jul 15, 2018
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no need to process result if timed out
parent
b719bc48
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Message.cs
StackExchange.Redis/StackExchange/Redis/Message.cs
+4
-2
ResultBox.cs
StackExchange.Redis/StackExchange/Redis/ResultBox.cs
+1
-0
No files found.
StackExchange.Redis/StackExchange/Redis/Message.cs
View file @
5183f1d4
...
...
@@ -587,14 +587,16 @@ internal void Cancel(Exception ex = null)
// true if ready to be completed (i.e. false if re-issued to another server)
internal
bool
ComputeResult
(
PhysicalConnection
connection
,
RawResult
result
)
{
var
box
=
resultBox
;
try
{
if
(
box
!=
null
&&
box
.
IsFaulted
)
return
false
;
// already failed (timeout, etc)
return
resultProcessor
==
null
||
resultProcessor
.
SetResult
(
connection
,
this
,
result
);
}
catch
(
Exception
ex
)
{
resultB
ox
?.
SetException
(
ex
);
return
true
;
// we still want to pulse/complete
b
ox
?.
SetException
(
ex
);
return
box
!=
null
;
// we still want to pulse/complete
}
}
...
...
StackExchange.Redis/StackExchange/Redis/ResultBox.cs
View file @
5183f1d4
...
...
@@ -9,6 +9,7 @@ internal abstract partial class ResultBox
{
protected
Exception
_exception
;
public
abstract
bool
IsAsync
{
get
;
}
public
bool
IsFaulted
=>
_exception
!=
null
;
public
void
SetException
(
Exception
exception
)
=>
_exception
=
exception
;
...
...
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