karlheyes / icecast-kh

KH branch of icecast
GNU General Public License v2.0
298 stars 106 forks source link

403 errors when under heavy load #318

Open ThisIsSet-L opened 4 years ago

ThisIsSet-L commented 4 years ago

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 commented 4 years ago

Reproduced on 2.4.0-kh14 as well

karlheyes commented 4 years ago

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.

ThisIsSet-L commented 4 years ago

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

karlheyes commented 4 years ago

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

karl

karlheyes commented 4 years ago

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

ThisIsSet-L commented 4 years ago

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