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
bf0a037d
Commit
bf0a037d
authored
Jul 15, 2018
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix TestQuit, by only exposing the wrapped exception from pipeline write failures
This is generally yhe behavior we want I think.
parent
34610f31
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
PhysicalConnection.cs
...kExchange.Redis/StackExchange/Redis/PhysicalConnection.cs
+5
-4
No files found.
StackExchange.Redis/StackExchange/Redis/PhysicalConnection.cs
View file @
bf0a037d
...
@@ -270,8 +270,9 @@ public Task FlushAsync()
...
@@ -270,8 +270,9 @@ public Task FlushAsync()
return
Task
.
CompletedTask
;
return
Task
.
CompletedTask
;
}
}
public
void
RecordConnectionFailed
(
ConnectionFailureType
failureType
,
Exception
innerException
=
null
,
[
CallerMemberName
]
string
origin
=
null
)
public
Exception
RecordConnectionFailed
(
ConnectionFailureType
failureType
,
Exception
innerException
=
null
,
[
CallerMemberName
]
string
origin
=
null
)
{
{
Exception
ex
=
innerException
;
IdentifyFailureType
(
innerException
,
ref
failureType
);
IdentifyFailureType
(
innerException
,
ref
failureType
);
if
(
failureType
==
ConnectionFailureType
.
InternalFailure
)
OnInternalError
(
innerException
,
origin
);
if
(
failureType
==
ConnectionFailureType
.
InternalFailure
)
OnInternalError
(
innerException
,
origin
);
...
@@ -330,7 +331,7 @@ void add(string lk, string sk, string v)
...
@@ -330,7 +331,7 @@ void add(string lk, string sk, string v)
add
(
"Last-Global-Heartbeat"
,
"global"
,
ConnectionMultiplexer
.
LastGlobalHeartbeatSecondsAgo
+
"s ago"
);
add
(
"Last-Global-Heartbeat"
,
"global"
,
ConnectionMultiplexer
.
LastGlobalHeartbeatSecondsAgo
+
"s ago"
);
}
}
var
ex
=
innerException
==
null
ex
=
innerException
==
null
?
new
RedisConnectionException
(
failureType
,
exMessage
.
ToString
())
?
new
RedisConnectionException
(
failureType
,
exMessage
.
ToString
())
:
new
RedisConnectionException
(
failureType
,
exMessage
.
ToString
(),
innerException
);
:
new
RedisConnectionException
(
failureType
,
exMessage
.
ToString
(),
innerException
);
...
@@ -357,6 +358,7 @@ void add(string lk, string sk, string v)
...
@@ -357,6 +358,7 @@ void add(string lk, string sk, string v)
// burn the socket
// burn the socket
Shutdown
();
Shutdown
();
return
ex
;
}
}
public
override
string
ToString
()
public
override
string
ToString
()
...
@@ -709,8 +711,7 @@ internal void WakeWriterAndCheckForThrottle()
...
@@ -709,8 +711,7 @@ internal void WakeWriterAndCheckForThrottle()
}
}
catch
(
ConnectionResetException
ex
)
catch
(
ConnectionResetException
ex
)
{
{
RecordConnectionFailed
(
ConnectionFailureType
.
SocketClosed
,
ex
);
throw
RecordConnectionFailed
(
ConnectionFailureType
.
SocketClosed
,
ex
);
throw
;
}
}
}
}
...
...
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