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
9bb2665b
Commit
9bb2665b
authored
Jun 28, 2018
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate WriteBuffer
Being removed in v2.0
parent
18c607d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
ConfigurationOptions.cs
...xchange.Redis/StackExchange/Redis/ConfigurationOptions.cs
+3
-0
PhysicalConnection.cs
...kExchange.Redis/StackExchange/Redis/PhysicalConnection.cs
+2
-0
No files found.
StackExchange.Redis/StackExchange/Redis/ConfigurationOptions.cs
View file @
9bb2665b
...
...
@@ -321,6 +321,7 @@ public int ConnectTimeout
/// <summary>
/// The size of the output buffer to use
/// </summary>
[
Obsolete
(
"WriteBuffer will be removed in the 2.0 release - see https://github.com/StackExchange/StackExchange.Redis/issues/871 for details."
,
false
)]
public
int
WriteBuffer
{
get
{
return
writeBuffer
.
GetValueOrDefault
(
4096
);
}
set
{
writeBuffer
=
value
;
}
}
internal
LocalCertificateSelectionCallback
CertificateSelectionCallback
{
get
{
return
CertificateSelection
;
}
private
set
{
CertificateSelection
=
value
;
}
}
...
...
@@ -631,7 +632,9 @@ private void DoParse(string configuration, bool ignoreUnknown)
HighPrioritySocketThreads
=
OptionKeys
.
ParseBoolean
(
key
,
value
);
break
;
case
OptionKeys
.
WriteBuffer
:
#pragma warning disable CS0618 // Type or member is obsolete
WriteBuffer
=
OptionKeys
.
ParseInt32
(
key
,
value
);
#pragma warning restore CS0618 // Type or member is obsolete
break
;
case
OptionKeys
.
Proxy
:
Proxy
=
OptionKeys
.
ParseProxy
(
key
,
value
);
...
...
StackExchange.Redis/StackExchange/Redis/PhysicalConnection.cs
View file @
9bb2665b
...
...
@@ -759,7 +759,9 @@ SocketMode ISocketCallback.Connected(Stream stream, TextWriter log)
}
OnWrapForLogging
(
ref
stream
,
physicalName
);
#pragma warning disable CS0618 // Type or member is obsolete
int
bufferSize
=
config
.
WriteBuffer
;
#pragma warning restore CS0618 // Type or member is obsolete
netStream
=
stream
;
outStream
=
bufferSize
<=
0
?
stream
:
new
BufferedStream
(
stream
,
bufferSize
);
Multiplexer
.
LogLocked
(
log
,
"Connected {0}"
,
Bridge
);
...
...
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