Skip to content

Anomalous RAM use by TLSSocket #5469

Closed
Closed
@Zarel

Description

@Zarel

Hi, this is an issue that again only seems to occur at load.

I first found it here: #3072 (comment) – Further testing revealed that it's probably unrelated to #3072.

Summary: In my app (actually an online game, but for the purposes of this bug report can be considered a WebSocket chatroom app with HTTPS support), a single TLSSocket's write buffer is taking up hundreds of megabytes of RAM.

Approximately equal (non-anomalous) amounts of data are being written to every socket, but every once in a while, a few TLSSockets' write buffers will get backed up.

Details and screenshots to follow in comments.

My app is somewhat commonly targeted by DoS attacks, so that is possibly the explanation. Preliminary inspection of the sockets in question appear legitimate, and consistent with the theory that a user disconnects, and reconnects again, but their first socket doesn't get properly closed, but nothing conclusive.

  • Version: v5.7.0, v4.3.1 (bug occurs in both)
  • Platform: Linux smogon-sim 3.13.0-77-generic #121-Ubuntu SMP Wed Jan 20 10:50:42 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
  • Subsystem: https?

Metadata

Metadata

Assignees

No one assigned

    Labels

    memoryIssues and PRs related to the memory management or memory footprint.tlsIssues and PRs related to the tls subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions