[Help] Reply to Ping (CoEmu v2)

09/11/2009 19:20 12tails#1
Hi all!!

i was testing my server some for some time with my friends... but after some time ( like 40, 50 mins) the server stop work... and show an error here:

Code:
								case 27://Reply to ping
									{
										CSocket.Send(ReturnFinal(Data));
										Database.Database.SaveCharacter(CSocket.Client);
										break;
									}
but i don't see anything wrong here... why its getting that?

can someone help : X
09/11/2009 19:27 blade911#2
Quote:
Originally Posted by 12tails View Post
Hi all!!

i was testing my server some for some time with my friends... but after some time ( like 40, 50 mins) the server stop work... and show an error here:

Code:
								case 27://Reply to ping
									{
										CSocket.Send(ReturnFinal(Data));
										Database.Database.SaveCharacter(CSocket.Client);
										break;
									}
but i don't see anything wrong here... why its getting that?

can someone help : X
Hey um how did someone connect to your server? Msn: [Only registered and activated users can see links. Click Here To Register...]
09/11/2009 19:29 12tails#3
my friends was testingh it on my house ^^ but is hamachi only : /
09/11/2009 19:36 .Guru#4
5095 seems to do that for some reason (most of them). I've encountered other servers that have the same error. sorry, i don't know why though.
09/11/2009 19:49 12tails#5
hmmm so can someone help me to do a auto restart?
09/12/2009 00:08 samehvan#6
Quote:
Originally Posted by 12tails View Post
Hi all!!

i was testing my server some for some time with my friends... but after some time ( like 40, 50 mins) the server stop work... and show an error here:

Code:
								case 27://Reply to ping
									{
										CSocket.Send(ReturnFinal(Data));
										Database.Database.SaveCharacter(CSocket.Client);
										break;
									}
but i don't see anything wrong here... why its getting that?

can someone help : X
i think it's not there it's at the savecharacter void , SQLPool connection timeout , r8?
09/12/2009 03:17 12tails#7
yes
09/12/2009 04:06 Empty Project#8
Hmm..Off this topic but I wonder if you could set a ping limit. probably could... You should try that, kick off anyone with 300+ ping :D
09/12/2009 22:09 12tails#9
sorry... doesn't work and it take the server down after 2 /3 minutes now....
some one have the solution or another idea to try? ( also the problem isn't in Reply to ping is on SaveCharacter void confirmed that )

someone ???
09/12/2009 22:15 CptSky#10
Why you save the character when the client want an answer for the ping request...
09/12/2009 23:20 samehvan#11
Quote:
Originally Posted by CptSky View Post
Why you save the character when the client want an answer for the ping request...
it's not the problem even if u ddn't save chars , the bug still there ,
@Tails
search every single MySQL connection there and add the close connection command ,

i had the same bug this steps solved too much but i still missing something coz it hangs again after 6-7 hours (maybe if i have much more players on will be less than that)
the only thing i can imagine now is that the SQL itself has a TimeOut thread that force close the connection ,i dunno , i am trying to find a way to figure this out
09/13/2009 05:21 CptSky#12
Quote:
Originally Posted by samehvan View Post
search every single MySQL connection there and add the close connection command ,

i had the same bug this steps solved too much but i still missing something coz it hangs again after 6-7 hours (maybe if i have much more players on will be less than that)
the only thing i can imagine now is that the SQL itself has a TimeOut thread that force close the connection ,i dunno , i am trying to find a way to figure this out
I can connect a server during 24h and the connection will be active... (Login Server) Make a check before the MySQL command.
09/20/2009 15:44 12tails#13
reply to ping bug fixed....

#request close
09/20/2009 15:53 Basser#14
How did you fix it?
09/20/2009 16:16 12tails#15
i will release it .... just wait ^^