View Full Version : sv_downloadurl pretty slow randomly

03-02-2016, 10:50 AM
I notice that sometimes it fast, but on certain maps it would download one file, and wait 5 to 10 seconds, and then download the next file. With maps that have numerous files, it can takes almost 15 minutes to an hour for 50mb of content. It appears to do it on Windows 2012 R2, and Ubuntu 14.04 Server. The server is using Ngnix as the http server.

On the client side, it happens to 3 out of 5 people. The rest were able to join in seconds, while the others end up waiting a abnormal amount of time regardless of internet speed.

03-02-2016, 11:09 AM
I guess this was a map file. Probably case mismatch. i.e. you have a cusom map named Aerodock1.bsp (on the server maps dir and the dl server) but you do "rcon changelevel aerodock1", the clients will try to download the lowercase version but your webserver will return 404 and thus the files fall back to slowdl.

Edit: Same thing when the case of actual files on disk and those listed in mapname.res file differ.

03-02-2016, 02:06 PM
Checking the logs for nginx is a good start. If there are 404 or 403 errors repeating for certain files then verify that the files are named correctly. If there is nothing suspicious in the logs, look at the nginx configuration. There might be a low max clients or max simultanious downloads limit set.

03-02-2016, 04:01 PM
https://httpd.apache.org/docs/2.4/mod/mod_speling.html (https://httpd.apache.org/docs/2.4/mod/mod_speling.html)

Attempts to correct mistaken URLs by ignoring capitalization, or attempting to correct various minor misspellings.