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
82a73263
Commit
82a73263
authored
Jun 16, 2018
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use more aggressive PipeOptions - inline scheduler and no sync-context
parent
26908566
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
SocketManager.cs
StackExchange.Redis/StackExchange/Redis/SocketManager.cs
+4
-1
No files found.
StackExchange.Redis/StackExchange/Redis/SocketManager.cs
View file @
82a73263
...
@@ -161,6 +161,9 @@ public void Dispose()
...
@@ -161,6 +161,9 @@ public void Dispose()
OnDispose
();
OnDispose
();
}
}
//static readonly PipeOptions PipeOptions = PipeOptions.Default;
static
readonly
PipeOptions
PipeOptions
=
new
PipeOptions
(
readerScheduler
:
PipeScheduler
.
Inline
,
writerScheduler
:
PipeScheduler
.
Inline
,
useSynchronizationContext
:
false
);
internal
SocketToken
BeginConnect
(
EndPoint
endpoint
,
ISocketCallback
callback
,
ConnectionMultiplexer
multiplexer
,
TextWriter
log
)
internal
SocketToken
BeginConnect
(
EndPoint
endpoint
,
ISocketCallback
callback
,
ConnectionMultiplexer
multiplexer
,
TextWriter
log
)
{
{
var
addressFamily
=
endpoint
.
AddressFamily
==
AddressFamily
.
Unspecified
?
AddressFamily
.
InterNetwork
:
endpoint
.
AddressFamily
;
var
addressFamily
=
endpoint
.
AddressFamily
==
AddressFamily
.
Unspecified
?
AddressFamily
.
InterNetwork
:
endpoint
.
AddressFamily
;
...
@@ -171,7 +174,7 @@ internal SocketToken BeginConnect(EndPoint endpoint, ISocketCallback callback, C
...
@@ -171,7 +174,7 @@ internal SocketToken BeginConnect(EndPoint endpoint, ISocketCallback callback, C
{
{
var
formattedEndpoint
=
Format
.
ToString
(
endpoint
);
var
formattedEndpoint
=
Format
.
ToString
(
endpoint
);
SocketConnection
.
ConnectAsync
(
endpoint
,
PipeOptions
.
Default
,
SocketConnection
.
ConnectAsync
(
endpoint
,
PipeOptions
,
conn
=>
EndConnectAsync
(
conn
,
multiplexer
,
log
,
callback
),
socket
);
conn
=>
EndConnectAsync
(
conn
,
multiplexer
,
log
,
callback
),
socket
);
}
}
catch
(
NotImplementedException
ex
)
catch
(
NotImplementedException
ex
)
...
...
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