statianzo/Fleck — Issue #22: CLI has stopped working (on many F5 in broswer)
Author: tvolodimir
Created: 2011-11-16 07:22:37+00:00
State: open

**I'm run your sample server without any modifications, open your sample html file/ and i'm often press F5. and in few seconds server stopped. :(**

# CLI has stopped working
Problem signature:
Problem Event Name:	CLR20r3
Problem Signature 01:	fleck.samples.consoleapp.exe
Problem Signature 02:	1.0.0.0
Problem Signature 03:	4ec36126
Problem Signature 04:	System
Problem Signature 05:	4.0.0.0
Problem Signature 06:	4db92edb
Problem Signature 07:	2f4c
Problem Signature 08:	23
Problem Signature 09:	System.AggregateException
OS Version:	6.1.7601.2.1.0.256.1
Locale ID:	1033
Additional Information 1:	0a9e
Additional Information 2:	0a9e372d3b4ad19135b953a78882e789
Additional Information 3:	0a9e
Additional Information 4:	0a9e372d3b4ad19135b953a78882e789

# In console.

## many exceptions like:
[Error] Application Error System.AggregateException: One or more errors occurred. ---> System.IO.IOException: Unable to read data from the
transport connection: An established connection was aborted by the software in your host machine. --->

## and last two exceptions:
...
11/16/2011 9:07:52 AM [Debug] Client Connected
11/16/2011 9:07:52 AM [Debug] Sent 129 bytes
Open!
11/16/2011 9:07:52 AM [Debug] 251 bytes read
11/16/2011 9:07:52 AM [Debug] Building Hybi-14 Response
11/16/2011 9:07:52 AM [Debug] Sent 129 bytes
11/16/2011 9:07:52 AM [Debug] Client Connected
Open!
11/16/2011 9:07:52 AM [Debug] 0 bytes read. Closing.
11/16/2011 9:07:52 AM [Debug] 251 bytes read
11/16/2011 9:07:52 AM [Debug] Building Hybi-14 Response
Close!
11/16/2011 9:07:52 AM [Debug] Sent 129 bytes
Open!
11/16/2011 9:07:52 AM [Debug] 0 bytes read. Closing.
Close!
11/16/2011 9:07:52 AM [Debug] Client Connected
11/16/2011 9:07:52 AM [Debug] 251 bytes read
11/16/2011 9:07:52 AM [Debug] Building Hybi-14 Response
11/16/2011 9:07:52 AM [Debug] Sent 129 bytes
Open!
11/16/2011 9:07:53 AM [Debug] 0 bytes read. Closing.
Close!
11/16/2011 9:07:53 AM [Debug] Client Connected
11/16/2011 9:07:53 AM [Debug] 251 bytes read
11/16/2011 9:07:53 AM [Debug] Building Hybi-14 Response
11/16/2011 9:07:53 AM [Debug] Sent 129 bytes
Open!
11/16/2011 9:07:53 AM [Debug] 0 bytes read. Closing.
Close!
11/16/2011 9:07:53 AM [Debug] Client Connected
11/16/2011 9:07:53 AM [Debug] 251 bytes read
11/16/2011 9:07:53 AM [Debug] Building Hybi-14 Response
11/16/2011 9:07:53 AM [Error] Application Error System.AggregateException: One or more errors occurred. ---> System.IO.IOException: Unable to read data from the
transport connection: An established connection was aborted by the software in your host machine. ---> System.Net.Sockets.SocketException: An established conne
ction was aborted by the software in your host machine
at System.Net.Sockets.Socket.BeginReceive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state)
at System.Net.Sockets.NetworkStream.BeginRead(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.BeginRead(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)
at Fleck.SocketWrapper.<>c__DisplayClassa.b__6(AsyncCallback cb, Object s) in D:\Dropbox\Projects\Fleck\src\Fleck\SocketWrapper.cs:line 71
at System.Threading.Tasks.TaskFactory`1.FromAsyncImpl(Func`3 beginMethod, Func`2 endMethod, Object state, TaskCreationOptions creationOptions)
at System.Threading.Tasks.TaskFactory.FromAsync[TResult](Func`3 beginMethod, Func`2 endMethod, Object state)
at Fleck.SocketWrapper.Receive(Byte[] buffer, Action`1 callback, Action`1 error, Int32 offset) in D:\Dropbox\Projects\Fleck\src\Fleck\SocketWrapper.cs:line 7
3
at Fleck.WebSocketConnection.Read(List`1 data, Byte[] buffer) in D:\Dropbox\Projects\Fleck\src\Fleck\WebSocketConnection.cs:line 60
at Fleck.WebSocketConnection.<>c__DisplayClassa.b__8(Int32 r) in D:\Dropbox\Projects\Fleck\src\Fleck\WebSocketConnection.cs:line 80
at Fleck.SocketWrapper.<>c__DisplayClassa.b__8(Task`1 t) in D:\Dropbox\Projects\Fleck\src\Fleck\SocketWrapper.cs:line 74
at System.Threading.Tasks.Task`1.<>c__DisplayClass17.b__16(Object obj)
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.IO.IOException: Unable to read data from the transport connection: An established connection was aborted by the software in you
r host machine. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine
at System.Net.Sockets.Socket.BeginReceive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state)
at System.Net.Sockets.NetworkStream.BeginRead(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.BeginRead(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)
at Fleck.SocketWrapper.<>c__DisplayClassa.b__6(AsyncCallback cb, Object s) in D:\Dropbox\Projects\Fleck\src\Fleck\SocketWrapper.cs:line 71
at System.Threading.Tasks.TaskFactory`1.FromAsyncImpl(Func`3 beginMethod, Func`2 endMethod, Object state, TaskCreationOptions creationOptions)
at System.Threading.Tasks.TaskFactory.FromAsync[TResult](Func`3 beginMethod, Func`2 endMethod, Object state)
at Fleck.SocketWrapper.Receive(Byte[] buffer, Action`1 callback, Action`1 error, Int32 offset) in D:\Dropbox\Projects\Fleck\src\Fleck\SocketWrapper.cs:line 7
3
at Fleck.WebSocketConnection.Read(List`1 data, Byte[] buffer) in D:\Dropbox\Projects\Fleck\src\Fleck\WebSocketConnection.cs:line 60
at Fleck.WebSocketConnection.<>c__DisplayClassa.b__8(Int32 r) in D:\Dropbox\Projects\Fleck\src\Fleck\WebSocketConnection.cs:line 80
at Fleck.SocketWrapper.<>c__DisplayClassa.b__8(Task`1 t) in D:\Dropbox\Projects\Fleck\src\Fleck\SocketWrapper.cs:line 74
at System.Threading.Tasks.Task`1.<>c__DisplayClass17.b__16(Object obj)
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---

11/16/2011 9:07:53 AM [Debug] Sent 129 bytes
Open!
11/16/2011 9:07:53 AM [Debug] Client Connected
11/16/2011 9:07:53 AM [Debug] 251 bytes read
11/16/2011 9:07:53 AM [Debug] Building Hybi-14 Response
11/16/2011 9:07:53 AM [Debug] Sent 129 bytes
Open!
11/16/2011 9:07:53 AM [Debug] 0 bytes read. Closing.
Close!
11/16/2011 9:07:53 AM [Debug] Client Connected

Unhandled Exception: System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a
result, the unobserved exception was rethrown by the finalizer thread. ---> System.IO.IOException: Unable to write data to the transport connection: An establis
hed connection was aborted by the software in your host machine. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software
in your host machine
at System.Net.Sockets.Socket.BeginSend(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state)
at System.Net.Sockets.NetworkStream.BeginWrite(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.BeginWrite(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)
at Fleck.SocketWrapper.<>c__DisplayClass16.b__12(AsyncCallback cb, Object s) in D:\Dropbox\Projects\Fleck\src\Fleck\SocketWrapper.cs:line 111
at System.Threading.Tasks.TaskFactory.FromAsync(Func`3 beginMethod, Action`1 endMethod, Object state, TaskCreationOptions creationOptions)
at System.Threading.Tasks.TaskFactory.FromAsync(Func`3 beginMethod, Action`1 endMethod, Object state)
at Fleck.SocketWrapper.Send(Byte[] buffer, Action callback, Action`1 error) in D:\Dropbox\Projects\Fleck\src\Fleck\SocketWrapper.cs:line 113
at Fleck.WebSocketConnection.SendBytes(Byte[] bytes, Action callback) in D:\Dropbox\Projects\Fleck\src\Fleck\WebSocketConnection.cs:line 104
at Fleck.WebSocketConnection.Close(Int32 code) in D:\Dropbox\Projects\Fleck\src\Fleck\WebSocketConnection.cs:line 148
at Fleck.WebSocketConnection.b__9(Exception e) in D:\Dropbox\Projects\Fleck\src\Fleck\WebSocketConnection.cs:line 97
at Fleck.SocketWrapper.<>c__DisplayClassa.b__7(Task t) in D:\Dropbox\Projects\Fleck\src\Fleck\SocketWrapper.cs:line 75
at System.Threading.Tasks.Task.<>c__DisplayClassb.b__a(Object obj)
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.TaskExceptionHolder.Finalize()
11/16/2011 9:07:53 AM [Debug] 251 bytes read
11/16/2011 9:07:53 AM [Debug] Building Hybi-14 Response
11/16/2011 9:07:53 AM [Debug] Sent 129 bytes
11/16/2011 9:07:53 AM [Debug] 0 bytes read. Closing.
Close!
11/16/2011 9:07:53 AM [Debug] Client Connected
Open!
11/16/2011 9:07:53 AM [Debug] 251 bytes read
11/16/2011 9:07:53 AM [Debug] Building Hybi-14 Response
11/16/2011 9:07:53 AM [Debug] Sent 129 bytes
Open!
11/16/2011 9:07:53 AM [Debug] 0 bytes read. Closing.
Close!
11/16/2011 9:07:53 AM [Debug] Client Connected
11/16/2011 9:07:53 AM [Debug] 251 bytes read
11/16/2011 9:07:53 AM [Debug] Building Hybi-14 Response
11/16/2011 9:07:53 AM [Debug] Sent 129 bytes
Open!
11/16/2011 9:07:53 AM [Debug] 0 bytes read. Closing.
Close!
11/16/2011 9:07:53 AM [Debug] Client Connected
11/16/2011 9:07:53 AM [Debug] 251 bytes read
11/16/2011 9:07:53 AM [Debug] Building Hybi-14 Response
11/16/2011 9:07:53 AM [Debug] Sent 129 bytes
Open!
11/16/2011 9:07:53 AM [Debug] 0 bytes read. Closing.
Close!
11/16/2011 9:07:53 AM [Debug] Client Connected
11/16/2011 9:07:53 AM [Debug] 251 bytes read
11/16/2011 9:07:53 AM [Debug] Building Hybi-14 Response
11/16/2011 9:07:53 AM [Debug] Sent 129 bytes
Open!