{"action":"opened","issue":{"url":"https://api.github.com/repos/kerryjiang/WebSocket4Net/issues/60","repository_url":"https://api.github.com/repos/kerryjiang/WebSocket4Net","labels_url":"https://api.github.com/repos/kerryjiang/WebSocket4Net/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/kerryjiang/WebSocket4Net/issues/60/comments","events_url":"https://api.github.com/repos/kerryjiang/WebSocket4Net/issues/60/events","html_url":"https://github.com/kerryjiang/WebSocket4Net/issues/60","id":181344896,"number":60,"title":"Null reference exception in websocket4net client when the websocket server process is abruptly closed","user":{"login":"shaijujanardhanan","id":10303491,"avatar_url":"https://avatars.githubusercontent.com/u/10303491?v=3","gravatar_id":"","url":"https://api.github.com/users/shaijujanardhanan","html_url":"https://github.com/shaijujanardhanan","followers_url":"https://api.github.com/users/shaijujanardhanan/followers","following_url":"https://api.github.com/users/shaijujanardhanan/following{/other_user}","gists_url":"https://api.github.com/users/shaijujanardhanan/gists{/gist_id}","starred_url":"https://api.github.com/users/shaijujanardhanan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaijujanardhanan/subscriptions","organizations_url":"https://api.github.com/users/shaijujanardhanan/orgs","repos_url":"https://api.github.com/users/shaijujanardhanan/repos","events_url":"https://api.github.com/users/shaijujanardhanan/events{/privacy}","received_events_url":"https://api.github.com/users/shaijujanardhanan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-06T07:42:35Z","updated_at":"2016-10-06T07:42:35Z","closed_at":null,"body":"Hi,\r\nI have a websocket4net client connected to an IIS web socket server. When I stop the websocket app pool in IIS the following exception is thrown on the websocket4net client \r\n`Exception Info: System.NullReferenceException\r\n   at WebSocket4Net.Protocol.DraftHybi10Processor.SendCloseHandshake(WebSocket4Net.WebSocket, Int32, System.String)\r\n   at WebSocket4Net.WebSocket.OnDataReceived(Byte[], Int32, Int32)\r\n   at SuperSocket.ClientEngine.SslStreamTcpSession.OnDataRead(System.IAsyncResult)\r\n   at System.Net.LazyAsyncResult.Complete(IntPtr)\r\n   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object, IntPtr)\r\n   at System.Net.Security._SslStream.ProcessFrameBody(Int32, Byte[], Int32, Int32, System.Net.AsyncProtocolRequest)\r\n   at System.Net.Security._SslStream.ReadFrameCallback(System.Net.AsyncProtocolRequest)\r\n   at System.Net.AsyncProtocolRequest.CompleteRequest(Int32)\r\n   at System.Net.FixedSizeReader.CheckCompletionBeforeNextRead(Int32)\r\n   at System.Net.FixedSizeReader.ReadCallback(System.IAsyncResult)\r\n   at System.Net.LazyAsyncResult.Complete(IntPtr)\r\n   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)\r\n   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)\r\n   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)\r\n   at System.Net.ContextAwareResult.Complete(IntPtr)\r\n   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object, IntPtr)\r\n   at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)\r\n   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)\r\n`\r\n\r\nPlease let me know if there is any existing fix for this?"}}
{"actor":{"display_login":"shaijujanardhanan"}}