Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   User Socket &^%$& (https://postpacific.loc-online.com/showthread.php?t=5377)

Firedaemon 11.08.2006 16:18

User Socket &^%$&
 
I have been an admin of an l2server for two years now. I know most everything about getting things done. However, I have yet to solve the troublesome "User Socket" problems.

The Problem
After 4 hours of uptime, User Sockets build up and nobody can logon to the server anymore.

What we have done so far
We have our authd setup with a custom and lengthy blowfishkey to keep outgame applications from connecting.

We have great heardware. SCSi drives, 6GB ram and dual xeons. MSSQL server is located on a seperate box and so is our logon server and website. Our disk queue and ram usage is always good. Disk queue is always low and ram always has at least 1.5GB of headroom.

What can I do?
Please only reply if you have something constructive to say from your own experience.

jim2006193 11.08.2006 16:27

Well, if i remeber why, i think it what that the login and logout packets had changed from C3 to C4. My idea that i came up with but never got around to doing was to bring in another application layer, in a way make a second auth server, so when that one gets the C4 disconnect packet, that auth server takes it and sends it to the real auth server, but has converted the C4 disconnect packet to the C3 version, therefor there is a total disconnect with no sockets left open. I wanted to make something like this, but im not skilled enough in programing yet. I hope this has helped.

~James

P.S. If im wrong, don't make a big deal, just let me know.

vex 11.08.2006 21:29

I'm very interest in it too and I tring to investigate this
I think we have to debug LoginPacket procedure. I have some ideas - contact to me

Firedaemon 12.08.2006 06:46

If you have some ideas, discuss them publicly so other people can also provide their input.

testdude 12.08.2006 07:58

if ur retail c4 u shouldnt have this problem O.o an associate of mine has had 5 1/2 days uptime untill it crashed because his datacenter upgraded his pc xD

but with c1 server, is a memory leak, simple dll fix for it, the one i got conflicts with l2extend tho, makes hair accessories not viewable because it also has a hair slot fix, and im too lazy to remove it xP

Firedaemon 12.08.2006 17:13

testdude, can you share your dll fix with me for this memory leak?

vex 13.08.2006 02:29

yes
i think it is memory allocate issue too
but i still have not enough experience to fix it
if you can share this dll - i can learn it and attach to server w/o problems
or if you can't share just give me some tips

testdude 13.08.2006 07:54

http://www.megaupload.com/?d=EB0DGZR2
i am not taking any credit for the making of this dll
i do not know who made it and if it offends the person who did, for that i am sorry, this has already been posted here before but no one noticed it as it was bundled together with an extended dll that was posted

and dont ask me to upload to rapidshare >.>

TheOrder 13.08.2006 08:14

Tnx bud !!!

Firedaemon 13.08.2006 15:38

thanks for uploading testdude

testdude 14.08.2006 03:45

that dll is normally loaded with a modified version of tontor's dll, but i think u can attach it with stud_pe also...

vex 14.08.2006 11:03

yes - it made working hair slot and something else - now analyzing

FidoW 14.08.2006 12:20

I try to attach this DLL with Stup_PE to my l2server and dont load... I try to attach to a l2server without dlls injected (only tontor dll) and same problem... what im doing wrong ?

I try to attach with a pacth.exe modified of tontors patch and no see any different.. L2server dont load.

vex 14.08.2006 12:25

what error?

FidoW 14.08.2006 14:21

Quote:

Originally Posted by vex
what error?

No one, nothing happen.

vex 14.08.2006 15:16

ok, when i finish with it - i'm help you

Firedaemon 14.08.2006 20:39

I have not tested it yet, but I will take a look at it tonight.

testdude, do you have the modified version of tontor's dll?

testdude 15.08.2006 05:27

http://www.megaupload.com/?d=ENLIT3UR
just put patch2.dll in the same dir as l2server.exe and patch.dll and it will load it on start up

FidoW 15.08.2006 05:57

I try to download the file with Firefox... with I.Explorer... file start downloading... but... finish to fast hahahaha 0 bytes... i try to download like 7 or 8 times.

testdude 15.08.2006 06:58

well i cant upload to rapidshare or any crappy place like that cos they have my ISP blocked...

Firedaemon 15.08.2006 12:14

With the custom tontor dll and the patch2.dll, l2server wont load. There is no visible error because the app window doesnt load and there is nothing in linerror.txt.

FidoW 15.08.2006 13:02

Now i can download modified tontors dll... and have the same problem as Firedaemon. I try this before... (inject pacht2.dll in tontor dll) and nothing...

testdude 15.08.2006 15:10

try a plain l2server.exe and see if it works i dunno, maybe i uploaded the wrong dll, i have more dll's that i can think of

FidoW 15.08.2006 15:31

-- Deleted --

Mayii 15.08.2006 16:57

it probably isn't loading because it's the version I unpacked of that dll. my unpacked version was never supposed to load, was just to analyze it. ask testdude to download the original, packed version :P

testdude 15.08.2006 17:36

http://www.megaupload.com/?d=4SWJEQR1
if this one dont work then i dont know :x i have 6 patch2.dll's all different sizes and modify dates xD

FidoW 15.08.2006 17:50

-- Deleted --

Mayii 16.08.2006 17:01

Control Panel -> System -> Advanced -> Performance, Settings -> Data Execution Prevention

FidoW 16.08.2006 20:21

Thanks Mayii, now works... testing...

FidoW 17.08.2006 03:10

-- Deleted --

Firedaemon 17.08.2006 16:06

ok, so I have unpacked the DLL and then attached the DLL to the tontor dll. Server loads up all ok, however with 1.34 Final L2Extend, headgear and everything else seems to work fine.

Im not sure if I did something wrong or if 1.34 Final doesnt conflict with it. I guess I will know in 3-4 hours when User Sockets typically build up if I did it right.


**EDIT**
So headgear actually doesnt work. It equips but it does not show up on the model. Anyone have the talent to NOP out the headgear instructions in patch2.dll?

Also, the Symbol maker does not apply symbols anymore. It keeps saying "Not enough Items"


** HELP WANTED **
If someone can NOP out the symbol/henna and headgear features from patch2.dll, I will gladly donate $$$ for your time.


All times are GMT. The time now is 16:27.