X Tutup
Skip to content

WebSocket memory leak #117251

@AlexandrDzyuba

Description

@AlexandrDzyuba

Tested versions

Reproducible in each version from 4.4 -> 4.6.1

System information

Windows 11, Arch linux

Issue description

Each reconnection create an objects for client and server (somewhere internally) and don't free them after closing.

Image

Steps to reproduce

Open in any godot version (this demo works as well https://godotengine.org/asset-library/asset/2799))
Start "compo.tscn", press listen on server side and toggle "spam" button, this will send reconnection requests repetitively.
And you will see object count raise in monitors.
Even if server not enabled this will raise objects amount too but for client only.

Archive.zip

Minimal reproduction project (MRP)

I work on web project and notice that objects count on server raise non-stop if i spam with client reconnection. So this is super bad for long live server that works for our game.

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

      X Tutup