View Full Version : Sockets and Scrolls
Having a real issue with user sockets.
Its not the attack people had recently where the player count would skyrocket. This is just user sockets that are being opened, but will never close.
We have hundreds of players that, when disconnect, cant log back in because their socket never closed, and the server refuses to close it.
Cannot Kick (charid)(charname)
Thats the error that is showing up.
Not only that, scrolls of escapes mysteriously stopped working, along with scrolls of ressurection. This all happened within the term of 24 hours, and we havnt found any reasonable solutions.
If anyone can offer any advice, I would appreciate it. Thank you.
humordwarf
06.03.2006, 23:40
send packet to server with len=-1
server will disconnect such socket, afaik
just try...
Not sure how to do that. Mind to explain?
humordwarf
07.03.2006, 00:05
dont know.. many ways..
write "monitor" or "proxy" that will "kill" or send "-1" to "inactive" server sockets..
or something else..
humordwarf
07.03.2006, 00:07
or.. inside lot server .ini files somewhere is something like "sockettimeout" and too big? =)
My server gets this error and also these:
NPC:
[serversocket.cpp][2106] Invalid user [48108c16]
[serversocket.cpp][2106] Invalid user [48108ccf]
L2Server:
[DBSocket.cpp][3535] Invalid user[48108ccf]
[DBSocket.cpp][4608] pUserSocket is NULL.
When this happens no one can login and it lags pretty bad. This error occurs around the same time every day.
Eh does seem like the solution really.
Everything was fine, until last night. Its so random.
The scrolls of escape also... random... They work 1/4 of the time...
just closing usersockets wont help. even more growing sockets are not a problem at all. even if you close it propertly your players cant login.
as for scrolls (and im sure ss and bottles stop working too or lag too much) - check your db performance, seems you have a bottleneck somewhere (in 75% cases in your storage system), or something that heavely loads your db - eg: web scripts. check it with Profiler and Performance tool.
Ok. Its no Web scripts. It has to with something I added.
Added : TOI NPCPOS (Shouldn't cause a problem).
Added : Um, Hallate (Raid Boss) with AI to control the door in TOI. So when he is alive, its open, when dead, closed.
Added : Some stupid Sounds to the Coliseum, when you get MP/HP it says "Prepare to fight".
Added : A TOI quest basically I just SetMemo(talker, 372, 1); and then call that in other AI / HTMLs.
Could any of this calls SOEs and RES Scrolls not to work. And a bunch of errors such as Invalid ClassID and such, I never had these, but can't see what I added even close to being the same to what I have here.
Also added the Dimension Stones to teleport you to higher areas.
I am getting no DB Sockets closing, and also a "Cannot kick (NAME)" error. Maybe some just got the DB some how through new exploit, and its just the occasion it happened now?
Along with the TOI scrolls that you click summon an NPC, give you an item, and then despawn.
When players crash/logout, they stay in game. And they cannot re-log back in to get in. Anyone have a problem as such?
http://l2-paradise.com/downloads/omgwtf.jpg
kenster, try removing what you added one by one and see if any of them causes the prob
Kenster same thing happening to me. I get crazy database errors out of no where and a lot of server lag, it has nothing to do with the # of players online or my script files. I think this is some new kind of exploit (not the socket flood attacks)
kimmoman
09.03.2006, 22:14
Well, cos this actually was pointless. Ill remove this, good luck with this problem tho :roll:
this is a devs forum not a players whiner's spammers' forum
Ok, Well I removed my TOI spawns, and it seemed to calm down. I think the issue was with Hallate. He controled the door, and the door was open and mybe I tried to open and open door = causing an issue? I dont know. I will add in all of TOI once I see the server stablisze. And then, hopefully ping it down the hallate and fix it. Very very odd.