Skip to content

Fix/socket close nre #73

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

Closed
wants to merge 42 commits into from

Conversation

OchirDarmaev
Copy link

@OchirDarmaev OchirDarmaev commented Aug 25, 2020

EngineIoClientDotNet 1.0.8 uses with SocketIoClientDotNet 1.0.8
Target build platform 4.5

It runs as mobile app built using Unity 2019.4.8f1 for iOS and Android

We have 34k NRE in the week for 22k users. After that error socket never restores connection.

image

2020-08-23 16:24:56.4563 [FATAL] Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at Quobject.EngineIoClientDotNet.Client.Socket.Close () [0x00000] in <00000000000000000000000000000000>:0
at Quobject.SocketIoClientDotNet.Client.Manager+<>c__DisplayClass51_1.b__2 () [0x00000] in <00000000000000000000000000000000>:0
at System.Action.Invoke () [0x00000] in <00000000000000000000000000000000>:0
at System.Action.Invoke () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ContextCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.AwaitTaskContinuation.RunCallback (System.Threading.ContextCallback callback, System.Object state, System.Threading.Tasks.Task& currentTask) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.FinishContinuations () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task`1[TResult].TrySetResult (TResult result) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task+DelayPromise.Complete () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.TimerCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.WaitCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.WaitCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ContextCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0

Leszek Mazur and others added 30 commits September 1, 2017 12:13
Allow for TLS (HTTPS) through a web proxy when using web sockets
couldnt SendAsync for POST anymore, split into GetAsync and SendAsync for GET and POST
don't ping on connection not "open"
Quobject.EngineIoClientDotNet.Client.EngineIOException: Transport not open Quobject#49
Proposed fix for Issue 53 - use bool OnDataReceived signal to avoid i…
By using SpinWait the operation is more cpu friendly because it will
yield the thread after some time.
By only locking the file for writers, it is possible to monitor the file
in realtime.
Fixed runaway threadleak issue due around ping/heartbeats
mattqs and others added 12 commits June 5, 2018 06:56
Remove debug Console.WriteLine
…ng extra headers in old .NET Standard project. Fixes Quobject#61.
Added a new project that targets .NET Standard 2.0. Fixed a bug passi…
Exposed SslProtocols option. This will be in the next release in October 2018.  I will check then that all current unit tests are passing.
It would be could to have a new unit test for this functionality.
fix of leading questionmark in queryParams dictionary.
Add the SslProtocols option to .NET 3.5 and 4.0
@mattqs
Copy link
Contributor

mattqs commented Aug 25, 2020

#69

@mattqs mattqs closed this Aug 25, 2020
@OchirDarmaev
Copy link
Author

OchirDarmaev commented Aug 25, 2020

Hello, @mattqs I have added some description of a reason why I create a merge request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants