Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frequent refresh causes unhandled exception #47

Closed
baoshan opened this issue Aug 27, 2012 · 3 comments
Closed

Frequent refresh causes unhandled exception #47

baoshan opened this issue Aug 27, 2012 · 3 comments
Labels

Comments

@baoshan
Copy link

baoshan commented Aug 27, 2012

Version: 0.9.6
Browser: IE10 on Windows 8

When holding Ctrl + R, the Fleck.Samples.ConsoleApp.exe will be brought to die in 1 second with following exception:

Open!
8/27/2012 9:51:16 PM [Debug] 8 bytes read
8/27/2012 9:51:16 PM [Debug] Sent 4 bytes
Close!
8/27/2012 9:51:16 PM [Debug] Swallowing ObjectDisposedException System.ObjectDis
posedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.NetworkStream'.
   at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar,
Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchron
ization)
8/27/2012 9:51:16 PM [Debug] Client Connected
8/27/2012 9:51:16 PM [Debug] 338 bytes read
8/27/2012 9:51:16 PM [Debug] Building Hybi-14 Response
8/27/2012 9:51:16 PM [Info] Failed to send. Disconnecting. System.IO.IOException
: Unable to write data to the transport connection: An existing connection was f
orcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An e
xisting connection was forcibly closed by the remote host
   at System.Net.Sockets.Socket.BeginSend(Byte[] buffer, Int32 offset, Int32 siz
e, SocketFlags socketFlags, AsyncCallback callback, Object state)
   at System.Net.Sockets.NetworkStream.BeginWrite(Byte[] buffer, Int32 offset, I
nt32 size, AsyncCallback callback, Object state)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.BeginWrite(Byte[] buffer, Int32 offset, I
nt32 size, AsyncCallback callback, Object state)
   at Fleck.SocketWrapper.<>c__DisplayClass1a.<>c__DisplayClass1c.<Send>b__16()
in c:\Users\Baoshan\Downloads\statianzo-Fleck-0.9.6-2-g3fea00e\statianzo-Fleck-3
fea00e\src\Fleck\SocketWrapper.cs:line 127
   at Fleck.SocketWrapper.CallbackOnError[T](Func`1 func, Action`1 error) in c:\
Users\Baoshan\Downloads\statianzo-Fleck-0.9.6-2-g3fea00e\statianzo-Fleck-3fea00e
\src\Fleck\SocketWrapper.cs:line 141
8/27/2012 9:51:16 PM [Debug] Client Connected
8/27/2012 9:51:16 PM [Error] Application Error System.IO.IOException: Unable to
read data from the transport connection: An existing connection was forcibly clo
sed by the remote host. ---> System.Net.Sockets.SocketException: An existing con
nection was forcibly closed by the remote host
   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, In
t32 size, AsyncCallback callback, Object state)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.BeginRead(Byte[] buffer, Int32 offset, In
t32 size, AsyncCallback callback, Object state)
   at Fleck.SocketWrapper.<>c__DisplayClassb.<>c__DisplayClassd.<Receive>b__7()
in c:\Users\Baoshan\Downloads\statianzo-Fleck-0.9.6-2-g3fea00e\statianzo-Fleck-3
fea00e\src\Fleck\SocketWrapper.cs:line 82
   at Fleck.SocketWrapper.CallbackOnError[T](Func`1 func, Action`1 error) in c:\
Users\Baoshan\Downloads\statianzo-Fleck-0.9.6-2-g3fea00e\statianzo-Fleck-3fea00e
\src\Fleck\SocketWrapper.cs:line 141
Close!
@statianzo
Copy link
Owner

Is this still happening?

@baoshan
Copy link
Author

baoshan commented Jul 8, 2013

Will report back tomorrow.

@baoshan
Copy link
Author

baoshan commented Jul 10, 2013

Passed manual tested on IE10@10.0.9200.16599 from a Windows 8 virtual machine.
Good fix!

@baoshan baoshan closed this as completed Jul 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants