SourceEngineQueryCacher icon indicating copy to clipboard operation
SourceEngineQueryCacher copied to clipboard

Unable to handle more request

Open rabi07 opened this issue 1 year ago • 5 comments

sir ,Im using CS2 , only port udp 25017 open

with below config Threads=100 StatsPPS=true StatsbPS=true GameUpdateInterval=1000 GameUpdateSocketTimeout=1000 ChallengeCodeTTL=5000 LocalServerIPAddress=0.0.0.0 LocalServerPort=9110 GameServerIPAddress=127.0.0.1 GameServerPort=27015 ReceiveBufferSize=65535 SendBufferSize=65535 UdpGro=true A2sRule=true

The error shown below appears when a DDoS attack occurs.

------------ Dropping query request because Cache is not ready ----------- A2S_INFO: PooledUnsafeDirectByteBuf(ridx: 0, widx: 144, cap: 256) A2S_PLAYER: PooledUnsafeDirectByteBuf(ridx: 0, widx: 0, cap: 256)

im getting p/s more then 30k and b/s around 50k any way to fix it? Thanks you

image

rabi07 avatar Jun 26 '24 14:06 rabi07

I have some optimizations in my plans. I'd need a server to test. Wanna help around?

hyperxpro avatar Jun 26 '24 18:06 hyperxpro

@hyperxpro sure sir , ping me here savage5555 on discord

ill provide server

rabi07 avatar Jun 26 '24 19:06 rabi07

@hyperxpro , Better and for maximum performance will be XDP, so if you have time and desire, rewrite it in XDP. Rust + XDP can also be an option, I see that you have some repository (game oriented) already.

Gawnz1 avatar Aug 17 '24 11:08 Gawnz1

@Gawnz1 Indeed, I do plan for XDP but redbpf is no longer being maintained. I have to use a new Rust library to make things working again.

hyperxpro avatar Aug 17 '24 11:08 hyperxpro

That's nice to hear! I usually use LibXDP / LibBPF with C, since I don't know rust. You might take a look, if it fits for your project/language (If there is nothing for rust yet).

Gawnz1 avatar Aug 17 '24 12:08 Gawnz1