Skip to content

Memory leak when WS connection is lost and attempting retry #4

@magkal

Description

@magkal

When connected to lightstreamer server with this dotnet client (using dotnet7 runtime), every time the client loses connection and attempts to reconnect it results in a severy memory leak that eats up all available memory on the server, and then crashes in a matter of minutes.

I know that this repo is deprecated, given TLCP version is hard coded in the client it's not guaranteed the server i'm connecting to is going to accept the new lib (6.0).

I've tried all versions 5.0.0-5.1.8 and they all suffer from this issue.

Edit:
This could be due to and old version of DotNetty, i've experienced similar issues with low level socket/http/connection libraries that were built for older versions of dotnet, since dotnet5-7 and specifically dotnet 6 had major rewrites to the low level code for performance reasons.
I can see DotNetty 0.7.3 has a fix with compilation targets for dotnet 5 and 6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions