Thread: Linux Dedicated Server for 5.0 Guide

Page 3 of 3 FirstFirst 123
Results 51 to 52 of 52
  1. #51
    incognico nico's Avatar
    Join Date
    Aug 2015
    Posts
    440

    Re: Linux Dedicated Server for 5.0 Guide

    Also (copy pasting from another post of me):

    SC supports gzip HTTP transfer compression. If you tell your fastdl webserver to compress the mime types "text/* audio/* image/* application/octet-stream" this should compress all custom content (application/octet-stream is used for files with unkown mime types like wad/bsp/mdl assuming you have not added any custom filetype/mime associations). Also use a reasonable minimum filesize (like only compress files >4KiB). mod_deflate for lighttpd or apache can do this (on the fly compression). But note that compression uses CPU power, especially when the webserver is running on the same host as the gameserver (think 20 players on mapchange to a new map with loads of content). Compression level also matters. Traffic-wise with such a configuration it is about the same as fastdl on Source games, just that gzip instead of bzip2 is used.

  2. #52
    Game tester  
    Tester
    Join Date
    Aug 2009
    Location
    Sao Paulo, Brazil
    Posts
    204

    Re: Linux Dedicated Server for 5.0 Guide

    Quote Originally Posted by nico View Post
    Also (copy pasting from another post of me):

    SC supports gzip HTTP transfer compression. If you tell your fastdl webserver to compress the mime types "text/* audio/* image/* application/octet-stream" this should compress all custom content (application/octet-stream is used for files with unkown mime types like wad/bsp/mdl assuming you have not added any custom filetype/mime associations). Also use a reasonable minimum filesize (like only compress files >4KiB). mod_deflate for lighttpd or apache can do this (on the fly compression). But note that compression uses CPU power, especially when the webserver is running on the same host as the gameserver (think 20 players on mapchange to a new map with loads of content). Compression level also matters. Traffic-wise with such a configuration it is about the same as fastdl on Source games, just that gzip instead of bzip2 is used.
    A while ago I made a guide for a few friends to try, you can use static gzip instead of the on-the-fly compression which causes high cpu usage.

    If anyone is willing to try, let me know if it works: https://github.com/R4to0/scstuff/wik...oad-in-GoldSrc

    PS: This is incompatible with CheckSpelling Apache module (triggers HTTP 300 multiple choices), but it works with RewriteEngine stuff (requires regex mapping to be set in the apache webserver conf file)

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •