icecast-kh icon indicating copy to clipboard operation
icecast-kh copied to clipboard

403 errors when under heavy load

Open ThisIsSet-L opened this issue 4 years ago • 6 comments

Icecast 2.4.0-kh13 responds with 403 errors when being slammed with a lot of listeners.

Steps to reproduce:

for i in {1..100}; do curl "http://localhost:8000/128k_mp3" -O /dev/null & done

Expected Result: Can serve more listeners, as I have "unlimited" set as max listeners. Can still access admin panel.

Actual Result: Icecast replies a 403 to some of the listeners spawned by the above, and to any further requests to any routes. Cannot access admin panel, even with authentication.

ThisIsSet-L avatar Jun 26 '20 21:06 ThisIsSet-L

Reproduced on 2.4.0-kh14 as well

ThisIsSet-L avatar Jun 26 '20 21:06 ThisIsSet-L

what exactly is 128k.mp3, a file, stream or just missing? What is clients set to? I presume there is no auth set for the mount

karl.

karlheyes avatar Jun 26 '20 21:06 karlheyes

It's an MP3 stream (from Liquidsoap). Clients is set to 500 Auth is not set for the mount

ThisIsSet-L avatar Jun 27 '20 03:06 ThisIsSet-L

hmm, any info from the error log level 4 when these listeners are getting 403

karl

karlheyes avatar Jun 27 '20 09:06 karlheyes

trying on my build here with that same command yeilds no such result. What follows the 403 as that might pinpoint an exit point

karl

karlheyes avatar Jun 29 '20 21:06 karlheyes

I'll have to wait until next weekend to give that a go

ThisIsSet-L avatar Jun 30 '20 01:06 ThisIsSet-L