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

Closed
halter73 opened this Issue Apr 10, 2013 · 2 comments

Comments

Projects
None yet
3 participants
Member

halter73 commented Apr 10, 2013

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 was assigned Apr 10, 2013

jcondex was assigned Apr 14, 2013

Owner

davidfowl commented Apr 14, 2013

This is a dupe but @jcondex can you verify?

Member

halter73 commented Apr 16, 2013

Dupe of #1691

halter73 closed this Apr 16, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment