Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

You cannot set LocalEdnPoint after you start the connection. #107

Open
harishrajput4 opened this issue Sep 26, 2019 · 0 comments
Open

You cannot set LocalEdnPoint after you start the connection. #107

harishrajput4 opened this issue Sep 26, 2019 · 0 comments

Comments

@harishrajput4
Copy link

harishrajput4 commented Sep 26, 2019

@kerryjiang Some time i am getting this exception, below is the stack trace.

System.Exception: You cannot set LocalEdnPoint after you start the connection.
at SuperSocket.ClientEngine.TcpClientSession.set_LocalEndPoint(EndPoint value)
at SuperSocket.ClientEngine.ClientSession.OnClosed()
at SuperSocket.ClientEngine.AuthenticatedStreamTcpSession.OnDataRead(IAsyncResult result)
at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
at System.Net.AsyncProtocolRequest.CompleteWithError(Exception e)
at System.Net.Security._SslStream.ReadFrameCallback(AsyncProtocolRequest asyncRequest)
at System.Net.AsyncProtocolRequest.CompleteRequest(Int32 result)
at System.Net.FixedSizeReader.CheckCompletionBeforeNextRead(Int32 bytes)
at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)
at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Net.ContextAwareResult.Complete(IntPtr userToken)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

harishrajput4 pushed a commit to harishrajput4/SuperSocket.ClientEngine that referenced this issue Sep 27, 2019
…start the connection." occurs when connection closed called (By some internal code)

For detailed error check the below issue
kerryjiang#107
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

1 participant