[Bug 1899841] [NEW] Leaks memory on client disconnect while using TLS

Launchpad Bug Tracker 1899841 at bugs.launchpad.net
Thu Oct 15 01:02:35 UTC 2020


You have been subscribed to a public bug by Unit 193 (unit193):

Howdy,

When one has TLS enabled, icecast2 leaks memory on client disconnect.
Given the nature of a streaming server this happens all the time.

There are two ways to solve this, one would be to switch to using
OpenSSL rather than WolfSSL, while the other would be to apply a tiny
patch that was written by one of the WolfSSL contributors and is
attached.

I tested both solutions and they most certainly do solve the problem.
One can easily test by setting up icecast2, connecting a source client,
then creating a loop with wget to generate a lot of connect/disconnect
noise.


[Impact]

Anyone that uses TLS will be affected.


[Test Case]

Set up icecast2 with TLS and hook up a source client such as ices2,
darkice, boodler, etc.

Quickly connect and disconnect some clients:

for i in `seq 1 300`;do timeout 3 wget -O /dev/null https://DOMAIN.TLD
:TLS-PORT/STREAM-MOUNT;done

And watch the memory increase.


[Regression Potential]

Well it's a minimal patch, so topping OOM'ing due to too many clients is
going to be hard to beat.

If switching to OpenSSL, this is perhaps a bigger change due to
switching out TLS backends, but perhaps has been tested more.


~Unit 193

** Affects: icecast
     Importance: Unknown
         Status: Unknown

** Affects: icecast2 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: icecast2 (Debian)
     Importance: Unknown
         Status: Unknown

-- 
Leaks memory on client disconnect while using TLS
https://bugs.launchpad.net/bugs/1899841
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list