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
dd3da439
Commit
dd3da439
authored
Nov 23, 2015
by
Jeremy Meng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip checking windows version on dnx.
parent
047bd569
Changes
1
Show 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 @
dd3da439
...
@@ -221,9 +221,9 @@ internal void SetFastLoopbackOption(Socket socket)
...
@@ -221,9 +221,9 @@ internal void SetFastLoopbackOption(Socket socket)
// SIO_LOOPBACK_FAST_PATH (http://msdn.microsoft.com/en-us/library/windows/desktop/jj841212%28v=vs.85%29.aspx)
// SIO_LOOPBACK_FAST_PATH (http://msdn.microsoft.com/en-us/library/windows/desktop/jj841212%28v=vs.85%29.aspx)
// Speeds up localhost operations significantly. OK to apply to a socket that will not be hooked up to localhost,
// Speeds up localhost operations significantly. OK to apply to a socket that will not be hooked up to localhost,
// or will be subject to WFP filtering.
// or will be subject to WFP filtering.
#if !DNXCORE50
const
int
SIO_LOOPBACK_FAST_PATH
=
-
1744830448
;
const
int
SIO_LOOPBACK_FAST_PATH
=
-
1744830448
;
#if !DNXCORE50
// windows only
// windows only
if
(
Environment
.
OSVersion
.
Platform
==
PlatformID
.
Win32NT
)
if
(
Environment
.
OSVersion
.
Platform
==
PlatformID
.
Win32NT
)
{
{
...
@@ -231,8 +231,11 @@ internal void SetFastLoopbackOption(Socket socket)
...
@@ -231,8 +231,11 @@ internal void SetFastLoopbackOption(Socket socket)
var
osVersion
=
Environment
.
OSVersion
.
Version
;
var
osVersion
=
Environment
.
OSVersion
.
Version
;
if
(
osVersion
.
Major
>
6
||
osVersion
.
Major
==
6
&&
osVersion
.
Minor
>=
2
)
if
(
osVersion
.
Major
>
6
||
osVersion
.
Major
==
6
&&
osVersion
.
Minor
>=
2
)
{
{
#endif
byte
[]
optionInValue
=
BitConverter
.
GetBytes
(
1
);
byte
[]
optionInValue
=
BitConverter
.
GetBytes
(
1
);
socket
.
IOControl
(
SIO_LOOPBACK_FAST_PATH
,
optionInValue
,
null
);
socket
.
IOControl
(
SIO_LOOPBACK_FAST_PATH
,
optionInValue
,
null
);
#if !DNXCORE50
}
}
}
}
#endif
#endif
...
...
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