Question On Ping Packet

09/23/2011 08:19 12k#1
If the client doesnt receive a response from the ping packets after X amount of time, will the client disconnect? The reason I ask, is because id like to use the last jump of the player, and after x amount of time, stop responding to ping packets from the client. That way its less load on the server.
09/23/2011 08:32 BaussHacker#2
The ping packet does not really take any resources. If your server/source can't handle that, then you need some improvement on other areas.
09/23/2011 08:36 12k#3
eh, it doesnt really take much, just the more players the more it takes. Not saying mine will get this high, but for a server with 400 players, thats around 100 packets sent every second that isnt needed. Dont see the point in doing it if i could just ignore it.
09/23/2011 08:43 BaussHacker#4
400 players, that's 400 packets.
Also it's not like it will do anything at all. The packet is not bigger than some few bytes.
09/23/2011 08:44 12k#5
it doesnt go every second i dont believe, thats why i said 100. I think it goes every like 5 seconds or so.
09/23/2011 08:46 BaussHacker#6
Quote:
Originally Posted by 12k View Post
it doesnt go every second i dont believe, thats why i said 100. I think it goes every like 5 seconds or so.
Oh you meant at once, but it doesn't really do anything. I'm not sure if it's necessary thought. You could try not responding to the client with it and see if you get disconnected.
09/23/2011 08:48 12k#7
yeah, i prob will, just wasnt at home so thought id ask :P. It prob wont help much, was just an idea. Every bit helps i guess tho lolz.
09/23/2011 08:58 Lateralus#8
Quote:
Originally Posted by 12k View Post
it doesnt go every second i dont believe, thats why i said 100. I think it goes every like 5 seconds or so.
It's sent every 10 seconds; leave it in, it doesn't hurt anything.
09/23/2011 13:30 BaussHacker#9
Quote:
Originally Posted by Y u k i View Post
Its sent every 3 Seconds. kthxbai
Loool.
09/23/2011 15:05 CptSky#10
If you don't response the clients will not be disconnected, but the ping will be 0000 on their client. On my first source, I wasn't handling this packet.
09/23/2011 15:30 Lateralus#11
Quote:
Originally Posted by Y u k i View Post
Its sent every 3 Seconds. kthxbai
Naw. I'll show you a screenshot of the timer in olly. Just kidding. :cool:
09/23/2011 15:50 BaussHacker#12
Quote:
Originally Posted by CptSky View Post
If you don't response the clients will not be disconnected, but the ping will be 0000 on their client. On my first source, I wasn't handling this packet.
People will quit the server, because they think it's major lag.
09/23/2011 20:54 pro4never#13
Let's be clear here... Regardless of if you handle it or not you still have the overhead of receiving, splitting , reading packet type/length/subtype. The only thing you aren't doing is sending a few bytes back to the client every 10 seconds.

Worry about efficiency where it matters. This will not harm your servers performance and will piss off players for no reason.