[QUESTION] what to recode to fix login

07/12/2009 07:16 Pete1990#16
ok well thats the problem i have tryed it Sockets have been recoded
public unsafe void AuthPacketHandler(object Sender, HybridSocket Socket)
has been almost redone so we dont know where its at now.
07/12/2009 07:29 _tao4229_#17
Something is causing whatever the fuck 'TheKeys' is to be the same as another one that was added.
07/12/2009 20:51 Pete1990#18
yea we tryed dif things and still nothing lol.
07/12/2009 21:42 damianpesta#19
Quote:
Originally Posted by Pete1990 View Post
yea we tryed dif things and still nothing lol.
Well thers no way to eliminate login freeze in 100%, cause the way LOTF handles packet's is terrible.
Second Ill give you a hint.Open connections are not important you see once somebody log you can open connection , when authorization finishes you can close the connection,then if somebody is going 2 log off database open's connection once again and closes it after somebody log's off.
Delete useless Features.
Delete all the npc's , LOTF Got 1000+ NPC's.My server contains all the NPC's TQ got and thers only 500 of them?
thers a lot more way's of preventhing login freeze ... just think of them.
07/12/2009 22:00 Pete1990#20
yea all my npcs are redone. i mean login last a bit longer but eh:D
07/12/2009 22:05 damianpesta#21
Quote:
Originally Posted by Pete1990 View Post
yea all my npcs are redone. i mean login last a bit longer but eh:D
then you did something wrong and i bet its gonna affect server a lot lol.
07/12/2009 22:14 danielachraf#22
Do you have LOGIN FREEZE or login in long time ??
07/12/2009 22:20 ~*NewDuuDe*~#23
Yes, you did'nt actually state what problem you had. Its allright with the recoding, but what for?
07/12/2009 22:56 raidenx123#24
He has login freeze like every 20-30mins now I think
07/12/2009 23:01 Pete1990#25
Yea all login freez about 20-30mins and we get that error we psoted up before.
07/12/2009 23:13 damianpesta#26
Quote:
Originally Posted by Pete1990 View Post
Yea all login freez about 20-30mins and we get that error we psoted up before.
Allright well as I said close connections when they are not needed.Its best way to prevent login freeze , cause Login freeze happens when thers too many connections open.And Make a max AuthThread as 4 , cause once you restart the server and you'll bring it back up.There will be 10 people to login in 1 sec , and that may cause overloading as well.
07/13/2009 00:27 Pete1990#27
do you mean that for mysql? or sockets? or what lol
07/13/2009 00:33 damianpesta#28
Quote:
Originally Posted by Pete1990 View Post
do you mean that for mysql? or sockets? or what lol
Closing connections in Database.cs and change
Code:
                AuthServer.MaxThreads = (numer... w.e it is now)
to
Code:
                AuthServer.MaxThreads = 4 (or 6 ... w,e I think that once 6 people will try to log your source, it'll crash so... 4 is enough)