Skip to content
This repository has been archived by the owner on Aug 5, 2019. It is now read-only.

InvalidOperationException in SaeaLayerCallback #11

Closed
thelalle opened this issue Mar 7, 2014 · 15 comments
Closed

InvalidOperationException in SaeaLayerCallback #11

thelalle opened this issue Mar 7, 2014 · 15 comments

Comments

@thelalle
Copy link

thelalle commented Mar 7, 2014

I got this exception and it caused my app to fail.

Exception Info: System.InvalidOperationException
Stack:
at Nowin.SaeaLayerCallback.StartReceive(Byte[], Int32, Int32)
at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationSuccess(System.Net.Sockets.SocketError, Int32, System.Net.Sockets.SocketFlags)
at System.Net.Sockets.SocketAsyncEventArgs.CompletionPortCallback(UInt32, UInt32, System.Threading.NativeOverlapped_)
at System.Threading.IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped)

@thelalle
Copy link
Author

thelalle commented Mar 7, 2014

Sorry for not have more information i got that from the event log, the app segfaulted after that.

@Bobris
Copy link
Owner

Bobris commented Mar 8, 2014

StartReceive could throw such Exception, but that callstack is completely strange. You probably cannot reproduce it?

@thelalle
Copy link
Author

thelalle commented Mar 9, 2014

I cant reproduce but it reproduces itself like once per day. Have to change to the stupied httplistener :'(

@Bobris
Copy link
Owner

Bobris commented Mar 9, 2014

Ok, I will think how to attack such problem. Would you be able to to run some version with enhanced debugging?

@thelalle
Copy link
Author

thelalle commented Mar 9, 2014

Sure thing

@Bobris
Copy link
Owner

Bobris commented Mar 9, 2014

Do you use https or just http?

@Bobris
Copy link
Owner

Bobris commented Mar 9, 2014

Also do you have nowin.pdb? I still thinking why that callstack could be so illogical.

@thelalle
Copy link
Author

thelalle commented Mar 9, 2014

Just http. Its from nuget.

@Bobris
Copy link
Owner

Bobris commented Mar 9, 2014

I am publishing also symbols for every version. You can just follow this http://www.symbolsource.org/Public/Home/VisualStudio to setup their download.
And then just run it under debugger, or attach debugger.

@Bobris
Copy link
Owner

Bobris commented Dec 14, 2014

Just info. I think I fixed this bug in latest version, or at least I tried. If you will find this again, please report.

@Bobris Bobris closed this as completed Dec 14, 2014
@hyperletter
Copy link

Sweet =)

/thelalle (reporter)

@Bobris
Copy link
Owner

Bobris commented Dec 15, 2014

Just in case you already get to it, please update to even better version from today.

@marius-klimantavicius
Copy link
Contributor

For last two commits (delayed accept) I seem to be unable to find code that actually sets this (DelayedAccept) flag in saea.

@Bobris
Copy link
Owner

Bobris commented Jan 5, 2015

Good catch, thanks a lot. It should be in ProcessDisconnect(). I will fix it later.

@Bobris Bobris reopened this Jan 5, 2015
@Bobris
Copy link
Owner

Bobris commented Jan 5, 2015

Fixed. Thanks again for code review.

@Bobris Bobris closed this as completed Jan 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants