Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Unobserved ODE after manually stopping a connection on the .NET client #1848

Closed
halter73 opened this Issue · 2 comments

3 participants

@halter73
Collaborator

Repro:
1. Start and stop a long polling connection via the .NET client
2. Sometimes, after stop has completed, the unobserved ODE will be thrown

Expected:
No exception

Actual:

vstest.executionengine.x86.exe Error: 0 : Unobserved task exception: System.ObjectDisposedException: Safe handle has been closed
   at System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean& success)
   at System.StubHelpers.StubHelpers.SafeHandleAddRef(SafeHandle pHandle, Boolean& success)
   at Microsoft.Win32.Win32Native.SetEvent(SafeWaitHandle handle)
   at System.Threading.EventWaitHandle.Set()
   at Microsoft.AspNet.SignalR.Client.Transports.LongPollingTransport.<>c__DisplayClassc.<PollingSetup>b__7(String message) in c:\Users\shalter\dev\SignalR\src\Microsoft.AspNet.SignalR.Client\Transports\LongPollingTransport.cs:line 153
   at System.Action`1.Invoke(T obj)
   at Microsoft.AspNet.SignalR.Client.Transports.PollingRequestHandler.<Poll>b__10(String raw) in c:\Users\shalter\dev\SignalR\src\Microsoft.AspNet.SignalR.Client\Transports\LongPolling\PollingRequestHandler.cs:line 121
   at Microsoft.AspNet.SignalR.TaskAsyncHelper.FromMethod[T1](Action`1 func, T1 arg) in c:\Users\shalter\dev\SignalR\src\Microsoft.AspNet.SignalR.Core\TaskAsyncHelper.cs:line 682
@halter73 halter73 was assigned
@halter73 halter73 referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@jcondex jcondex was assigned
@davidfowl
Owner

This is a dupe but @jcondex can you verify?

@halter73
Collaborator

Dupe of #1691

@halter73 halter73 closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.