SA-MP Forums Archive
[REP++] Players getting 'server closed the connection' - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [REP++] Players getting 'server closed the connection' (/showthread.php?tid=599106)



[REP++] Players getting 'server closed the connection' - buburuzu19 - 21.01.2016

Hello guys , i own a sa-mp server with 200+ players and I get a lot of ackslimit 3000/sec reached warnings in my server log. Some players get suddenly 'server closed the connection' and they can't reconnect only after 2 attempts because the server tells them that they are banned. 'You are banned from this server.' I only can fix this by increasing the ackslimit to 6000 or 7000 but it's not normal to get this type of warnings. What can cause this and what should I do? Thanks for your help.


Re: [REP++] Players getting 'server closed the connection' - Weponz - 21.01.2016

The "You are banned from this server." is an infamous SA:MP bug. And show us the code of this: ackslimit "thingy-ma-jiggy"


Re: [REP++] Players getting 'server closed the connection' - buburuzu19 - 21.01.2016

EXAMPLE HERE:
*Warning: client exceeded 'ackslimit' 110.174.228.223:50520 (1073) Limit: 3000/sec


Re: [REP++] Players getting 'server closed the connection' - Weponz - 21.01.2016

I said the code, not the output. (Search for ackslimit in your script)


Re: [REP++] Players getting 'server closed the connection' - buburuzu19 - 21.01.2016

I don't have anything in my game mode about ackslimit.
Any new ideeas?


Re: [REP++] Players getting 'server closed the connection' - Richie© - 21.01.2016

Quote:
Originally Posted by Weponz
Посмотреть сообщение
I said the code, not the output. (Search for ackslimit in your script)
Ackslimit is in server.cfg ...

I reached ackslimit in an area with alot of objects (~600) stremed in.
Not sure of any other way to exeed ackslimit.


Re: [REP++] Players getting 'server closed the connection' - buburuzu19 - 21.01.2016

Quote:
Originally Posted by Richie©
Посмотреть сообщение
Ackslimit is in server.cfg ...

I reached ackslimit in an area with alot of objects (~600) stremed in.
Not sure of any other way to exeed ackslimit.
I don't have ackslimit in server.cfg so by default it's set to 3000.
How can you detect what is the cause or causes that you can get ackslimit warnings ?


Re: [REP++] Players getting 'server closed the connection' - Richie© - 21.01.2016

Quote:
Originally Posted by buburuzu19
Посмотреть сообщение
I don't have ackslimit in server.cfg so by default it's set to 3000.
How can you detect what is the cause or causes that you can get ackslimit warnings ?
This happend when i teleported to custom interior with about 600 streamed objects, whick makes sense since alot of msgs is sent to client. After increasing to 4000 i dont get ackslimit warnings.


Re: [REP++] Players getting 'server closed the connection' - Vince - 21.01.2016

Infinite loops often cause this. They may not always manifest themselves in regular for or while loops. Toggling spectating off within OnPlayerSpawn can cause this. Using CancelSelectTextDraw within OnPlayerClickTextDraw can also cause this. And perhaps there are more of such flaws.


Re: [REP++] Players getting 'server closed the connection' - buburuzu19 - 21.01.2016

Quote:
Originally Posted by Vince
Посмотреть сообщение
Infinite loops often cause this. They may not always manifest themselves in regular for or while loops. Toggling spectating off within OnPlayerSpawn can cause this. Using CancelSelectTextDraw within OnPlayerClickTextDraw can also cause this. And perhaps there are more of such flaws.
Hello Vince,

I read one of your old replies to another guy who had the same problem like me. I removed TogglePlayerSpectating from onplayerspawn and problem still continues.

I also have , at onplayerspawn ofcourse, the next things that may be suspicious:

"SetCameraBehindPlayer(playerid);"
"ResetPlayerWeapons(playerid);"
"SetPlayerWeather(playerid, 1);"
"SyncPlayerTime(playerid);"
"ResetPlayerWeapons(playerid);"
"GivePlayerWeapons(playerid);"


Suddenly all players got ackslimit warning in server log then they got [part] x disconnected. What can cause this ? Can you tell me another causes or what to search ? Can you give me your contact id please?