-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WriteDirectAsync throws System.NullReferenceException #962
Comments
I'll take a look. Do you have a specific example where this is happening,
by any chance?
…On Mon, 24 Sep 2018, 16:54 olehb007, ***@***.***> wrote:
Hi,
Time to time I'm getting System.NullReferenceException with a following
stack:
StackExchange.Redis.ServerEndPoint.WriteDirectAsync[T](Message message,
ResultProcessor`1 processor, Object asyncState, PhysicalBridge bridge) in
C:\proj\trouter\StackExchange.Redis\src\StackExchange.Redis\ServerEndPoint.cs:
line 562
StackExchange.Redis.ServerEndPoint.SendTracer(TextWriter log) in
C:\proj\trouter\StackExchange.Redis\src\StackExchange.Redis\ServerEndPoint.cs:
line 591
StackExchange.Redis.ConnectionMultiplexer.d__155.MoveNext() in
C:\proj\trouter\StackExchange.Redis\src\StackExchange.Redis\ConnectionMultiplexer.cs:
line 1678
System.Threading.Tasks.Task.ThrowIfExceptional(Boolean
includeTaskCanceledExceptions)
System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout,
CancellationToken cancellationToken)
System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout)
StackExchange.Redis.ConnectionMultiplexer.ConnectImpl(Object
configuration, TextWriter log) in
C:\proj\trouter\StackExchange.Redis\src\StackExchange.Redis\ConnectionMultiplexer.cs:
line 917
StackExchange.Redis.ConnectionMultiplexer.Connect(ConfigurationOptions
configuration, TextWriter log) in
C:\proj\trouter\StackExchange.Redis\src\StackExchange.Redis\ConnectionMultiplexer.cs:
line 903
As far as I understood GetBridge can return null and thus throw on
bridge.TryWrite.
internal Task<T> WriteDirectAsync<T>(Message message, ResultProcessor<T> processor, object asyncState = null, PhysicalBridge bridge = null)
{
var tcs = TaskSource.Create<T>(asyncState);
var source = ResultBox<T>.Get(tcs);
message.SetSource(processor, source);
if (bridge == null) bridge = GetBridge(message.Command);
var result = bridge.TryWrite(message, isSlave);
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#962>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AABDsHvMCGACY-b_eE8zo-kEuCYZNNILks5ueQBRgaJpZM4W280d>
.
|
Nothing specific, just simulating multiple clients and thus calling ConnectionMultiplexer.Connect(connectionConfig, null) multiple times. |
In my case Nuget Version:2.0.505 Code:
Some time Get Error
I Try fix this error In ServerEndPoint.cs line 562
but i think this is not a good idea. Thank! |
Should be fixed next build, thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Time to time I'm getting System.NullReferenceException with a following stack:
As far as I understood GetBridge can return null and thus throw on bridge.TryWrite.
The text was updated successfully, but these errors were encountered: