Skip to content

Conversation

@SonarBeserk
Copy link

The issue was caused by an exception in the receive call throwing an exception. "Operation on non-blocking socket would block"

https://github.com/obsilp/rmnp-csharp/blob/master/Client.cs#L36-L42

The exception was being caught quietly and firing constantly which seemingly didn't affect newer .net versions but would result in thousands of allocations in Unity.

@SonarBeserk SonarBeserk changed the title Make sockets block again to fix blocking exception, Set recieve timeout once Fix memory leak in connections Jul 7, 2018
@SonarBeserk SonarBeserk changed the title Fix memory leak in connections Fix memory leak due to non blocking sockets Jul 7, 2018
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.

1 participant