Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Media worker accumulates over 1000 connections to mega.nz #15440

Open
@syldrathecat

Description

@syldrathecat

Description

Our homeserver is accumulating connections to mega.nz (31.216.145.5) at a rate of approximately 2 per hour, most likely corresponding to URL preview requests for mega.nz. The largest amount I've seen is 1025 connections, spanning two media_worker instances.

Steps to reproduce

  • Request a moderate amount of mega.nz url previews over a long period of time
  • Observe the effect on the server via e.g. netstat -an | grep 31.216.145.5

I am observing the same https connections being open from 10 hours ago, as well as additional new ones opening.

The URL preview requests complete as expected, but the https connections are never closed, and new ones are slowly added over time.

I would expect that at some point the connections would be closed, rather than being staying open indefinitely.

Homeserver

another homeserver

Synapse Version

1.81

Installation Method

Debian packages from packages.matrix.org

Database

PostgreSQL

Workers

Multiple workers

Platform

lxc container with no outgoing http proxy configured for url previews

Configuration

No response

Relevant log output

-

Anything else that would be useful to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Media-RepositoryUploading, downloading images and video, thumbnailingA-URL-PreviewIssues related to generating server-side previews of remote URLsO-OccasionalAffects or can be seen by some users regularly or most users rarelyS-MinorBlocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions