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
d5015782
Commit
d5015782
authored
Aug 01, 2018
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
track when we sever the connection
parent
8bcdcea6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
StackExchange.Redis.csproj
StackExchange.Redis/StackExchange.Redis.csproj
+1
-1
PhysicalBridge.cs
StackExchange.Redis/StackExchange/Redis/PhysicalBridge.cs
+1
-1
PhysicalConnection.cs
...kExchange.Redis/StackExchange/Redis/PhysicalConnection.cs
+4
-0
No files found.
StackExchange.Redis/StackExchange.Redis.csproj
View file @
d5015782
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<PackageReference Include="Pipelines.Sockets.Unofficial" Version="0.2.1-alpha.7
6
" />
<PackageReference Include="Pipelines.Sockets.Unofficial" Version="0.2.1-alpha.7
7
" />
<PackageReference Include="System.Threading.Channels" Version="4.5.0" />
<PackageReference Include="System.Threading.Channels" Version="4.5.0" />
</ItemGroup>
</ItemGroup>
</Project>
</Project>
\ No newline at end of file
StackExchange.Redis/StackExchange/Redis/PhysicalBridge.cs
View file @
d5015782
...
@@ -676,7 +676,7 @@ private WriteResult WriteMessageToServerInsideWriteLock(PhysicalConnection conne
...
@@ -676,7 +676,7 @@ private WriteResult WriteMessageToServerInsideWriteLock(PhysicalConnection conne
{
{
throw
ExceptionFactory
.
MasterOnly
(
Multiplexer
.
IncludeDetailInExceptions
,
message
.
Command
,
message
,
ServerEndPoint
);
throw
ExceptionFactory
.
MasterOnly
(
Multiplexer
.
IncludeDetailInExceptions
,
message
.
Command
,
message
,
ServerEndPoint
);
}
}
if
(
message
.
Command
==
RedisCommand
.
QUIT
)
connection
.
RecordQuit
();
SelectDatabaseInsideWriteLock
(
connection
,
message
);
SelectDatabaseInsideWriteLock
(
connection
,
message
);
if
(!
connection
.
TransactionActive
)
if
(!
connection
.
TransactionActive
)
...
...
StackExchange.Redis/StackExchange/Redis/PhysicalConnection.cs
View file @
d5015782
...
@@ -651,6 +651,10 @@ internal void WriteHeader(RedisCommand command, int arguments, CommandBytes comm
...
@@ -651,6 +651,10 @@ internal void WriteHeader(RedisCommand command, int arguments, CommandBytes comm
_ioPipe
.
Output
.
Advance
(
offset
);
_ioPipe
.
Output
.
Advance
(
offset
);
}
}
internal
void
RecordQuit
()
// don't blame redis if we fired the first shot
=>
(
_ioPipe
as
SocketConnection
)?.
TrySetProtocolShutdown
(
PipeShutdownKind
.
ProtocolExitClient
);
internal
static
void
WriteMultiBulkHeader
(
PipeWriter
output
,
long
count
)
internal
static
void
WriteMultiBulkHeader
(
PipeWriter
output
,
long
count
)
{
{
// *{count}\r\n = 3 + MaxInt32TextLen
// *{count}\r\n = 3 + MaxInt32TextLen
...
...
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