WebSocket leak HttpContext even though DefaultWebSocketHandler is closed #1387

Closed
KKhurin opened this Issue Jan 22, 2013 · 1 comment

Projects

None yet

2 participants

@KKhurin
KKhurin commented Jan 22, 2013

After a stress run I see ~70 httpcontext instances, rooted by things like this:

            -> 000000a21545a110 System.Threading.CancellationCallbackInfo
            -> 000000a215459fd8 System.Action`1[[System.Object, mscorlib]]
            -> 000000a215459f88 Microsoft.AspNet.SignalR.Infrastructure.CancellationTokenExtensions+<>c__DisplayClass4`1[[System.IDisposable, mscorlib]]
            -> 000000a215459f48 System.Action`1[[System.IDisposable, mscorlib]]
            -> 000000a3154d9420 Microsoft.AspNet.SignalR.Transports.WebSocketTransport
            -> 000000a3154d8868 Microsoft.AspNet.SignalR.Hosting.HostContext
            -> 000000a3154d8688 Microsoft.AspNet.SignalR.Owin.ServerRequest
            -> 000000a3154d7d90 Microsoft.Owin.Host.SystemWeb.CallEnvironment.AspNetDictionary
            -> 000000a3154d7c30 Microsoft.Owin.Host.SystemWeb.OwinCallContext
            -> 000000a3154d7b48 System.Web.Routing.RequestContext
            -> 000000a3154d79d8 System.Web.HttpContextWrapper
            -> 000000a3154d7160 System.Web.HttpContext

But the DefaultWebSocketHandler looks closed:
000007fb3014dc90 4000064 20 System.Int32 1 instance 4194304 _maxIncomingMessageSize
000007fad229c5b0 4000065 8 ...ructure.TaskQueue 0 instance 000000a2953ee7a8 _sendQueue
000007fb3014c7b8 4000066 24 System.Boolean 1 instance 1 _isClosed
000007fb2f22f478 4000067 10 ...Sockets.WebSocket 0 instance 000000a2953edf28 <WebSocket>k__BackingField
000007fb3014b110 4000068 18 System.Exception 0 instance 000000a2953ee7e8 <Error>k__BackingField
000007fb30147528 4000063 88 System.TimeSpan 1 static 000000a6150ac480 _closeTimeout
000007fad2237f30 4000069 90 ...lib]], mscorlib]] 0 static 000000a2950ff9d8 CS$<>9__CachedAnonymousMethodDelegate8
000007fb3014c7b8 400006a 25 System.Boolean 1 instance 1 _raiseEvent
000007fb3014dc90 400006b 40 System.Int32 1 instance 1 _closeInvoked
000007fb3016e298 400006c 28 ...tring, mscorlib]] 0 instance 000000a2953eee88 <Microsoft.AspNet.SignalR.Hosting.IWebSocket.OnMessage>k__BackingField
000007fb30c37870 400006d 30 ...olean, mscorlib]] 0 instance 000000a2953eee48 <Microsoft.AspNet.SignalR.Hosting.IWebSocket.OnClose>k__BackingField
000007fb3017f718 400006e 38 ...ption, mscorlib]] 0 instance 0000000000000000 <Microsoft.AspNet.SignalR.Hosting.IWebSocket.OnError>k__BackingField
@davidfowl davidfowl was assigned Jan 22, 2013
@davidfowl
Member

Doesn't happen anymore.

@davidfowl davidfowl closed this Jan 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment