Giter Club home page Giter Club logo

Comments (18)

danielga avatar danielga commented on May 28, 2024

Which features were you using? Threaded socket reading, A2S_INFO response cache, file validation, query rate limiting, etc. Try to be as specific as possible. Config values for the module might help as well.
If you use the example.lua file without any content changes, do tell.

from gmsv_serversecure.

AMD-NICK avatar AMD-NICK commented on May 28, 2024

yeah, I'm using example.lua file. I just create file /addons/utils/lua/autorun/server/gmsv_serversecure.lua and paste example.lua content to him

from gmsv_serversecure.

danielga avatar danielga commented on May 28, 2024

Try commenting the lines related to info response cache (serversecure.EnableInfoCache and serversecure.SetInfoCacheTime, just add -- before them). See if that stops the crashes. If it does, it'll narrow down the problem to cache updating.

from gmsv_serversecure.

AMD-NICK avatar AMD-NICK commented on May 28, 2024

Try commenting the lines related to info response cache

But it feature is most important for me

from gmsv_serversecure.

AMD-NICK avatar AMD-NICK commented on May 28, 2024

I have comment all lines excepting A2S_INFO response cache.
Will tell about result

from gmsv_serversecure.

AMD-NICK avatar AMD-NICK commented on May 28, 2024

So. I comment all lines excepting A2S_INFO response cache and server wasn't crash yesterday

from gmsv_serversecure.

danielga avatar danielga commented on May 28, 2024

Someone previously used the module and told me by disabling A2S_INFO response cache it stopped crashing. So this leads me to believe it is a combination of features that leads to a crash.

from gmsv_serversecure.

fruitwasp avatar fruitwasp commented on May 28, 2024

It kept crashing on my server too, in which I commented out the file validation line, because it crashed just after bunch of [ServerSecure] Checking file "user_custom\12\122345a.dat prints

from gmsv_serversecure.

fruitwasp avatar fruitwasp commented on May 28, 2024

Seems to stop the crashes just after the 2nd player joined, now it crashes on random times

from gmsv_serversecure.

60percentCaffeine avatar 60percentCaffeine commented on May 28, 2024

This module even not compiling (according to README), sadly ;(
I don't know many C's, but this will be great if you will fix this module. I think that you've already fixed ServerSecure and running it on some server, then it will be simple to copy some code from your private version.

from gmsv_serversecure.

danielga avatar danielga commented on May 28, 2024

@uRandomAlex version 1.3.3 released

from gmsv_serversecure.

60percentCaffeine avatar 60percentCaffeine commented on May 28, 2024

@danielga Thanks! Testing it now!

from gmsv_serversecure.

60percentCaffeine avatar 60percentCaffeine commented on May 28, 2024

"Unable to load module library serversecure" (or something like this). It's also preventing some Lua-code from run, i.e. fretta's round system don't work.

from gmsv_serversecure.

60percentCaffeine avatar 60percentCaffeine commented on May 28, 2024

Crashes are gone. Sometimes join time on my server is very long, but I think that the problem is in settings. I've tweaked them a bit now, let's see what happens.

from gmsv_serversecure.

60percentCaffeine avatar 60percentCaffeine commented on May 28, 2024

Settings don't matter - this module improves client loading times a lot, so they just timeout-kicked! Is there any solution for this problem?

from gmsv_serversecure.

danielga avatar danielga commented on May 28, 2024

I'm going to need the settings you're using to attempt a reproduction.

from gmsv_serversecure.

60percentCaffeine avatar 60percentCaffeine commented on May 28, 2024

@danielga

hook.Add("Initialize", "serversecure initialization", function()
    require( "serversecure" )

    --serversecure.EnableFirewallWhitelist( bool ) -- enable "firewall" whitelist, any client not in the whitelist doesn't see the server
    --serversecure.AddWhitelistIP( ip_in_integer_format ) -- add an IP to the whitelist
    --serversecure.RemoveWhitelistIP( ip_in_integer_format ) -- remove an IP from the whitelist
    --serversecure.ResetWhitelist() -- reset the whitelist

    --serversecure.EnableFirewallBlacklist( boolean ) -- enable "firewall" blacklist, any client in the blacklist doesn't see the server
    --serversecure.AddBlacklistIP( ip_in_integer_format ) -- add an IP to the blacklist
    --serversecure.RemoveBlacklistIP( ip_in_integer_format ) -- remove an IP from the blacklist
    --serversecure.ResetBlacklist() -- reset the blacklist

    serversecure.EnableFileValidation( false ) -- validates files requested by clients for download

    //serversecure.EnableThreadedSocket( true ) -- receives packets from the game socket on another thread (as well as analyzing it)

    serversecure.EnablePacketValidation( true ) -- validates packets for having correct types, size, content, etc.

    serversecure.EnableInfoCache( true ) -- enable A2S_INFO response cache
    serversecure.SetInfoCacheTime( 5 ) -- seconds for cache to live (default is 5 seconds)

    serversecure.EnableQueryLimiter( true ) -- enable query limiter (similar to Source's one but all handled on the same place)
    serversecure.SetMaxQueriesWindow( 60 ) -- timespan over which to average query counts from IPs (default is 30 seconds)
    serversecure.SetMaxQueriesPerSecond( 1 ) -- maximum queries per second from a single IP (default is 1 per second)
    serversecure.SetGlobalMaxQueriesPerSecond( 50 ) -- maximum total queries per second (default is 60 per second)
    print( "[sv_serversecure.lua] Done!" )
end)

from gmsv_serversecure.

60percentCaffeine avatar 60percentCaffeine commented on May 28, 2024

This issue was fixed. @danielga can close it.

from gmsv_serversecure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.