Weird DC's in proxies

02/18/2011 10:06 shitboi#1
Do you guys have dc's on your proxies every now and then?
I tend of have a dc every 20-40 min after log in. I do not know what is causing it.

When i looked my error stack trace. It took place either at sending to client/server. Those are the times where my proxy is simply relaying packets.

What could be causing this?


EDIT[additional info]:

Code:
java.net.SocketException: Connection reset by peer: socket write error
        at java.net.SocketOutputStream.socketWrite0(Native Method)
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:124)
        at service.GameListener.run(XXXXXXXXX.java:77)


//In this example, the error took place when i am trying to perform proxyToClient.write(packet); 
In order for this exception to occur, the client must have closed it's socket before current attempt to send packet to client is initiated... 

some other times, it takes place at proxyToServer.write(packet);
Code:
This is a log of the portion of incoming packets from SERVER less the chat packets.

<--20 0 F4 3 XX XX XX XX 0 0 0 0 3A 67 46 4 C 78 E4 1A EA F2 FD 4C 60 A0 37 5A 0 0 0 0 54 51 53 65 72 76 65 72 
<--50 0 F1 3 XX XX XX XX 0 0 0 0 1B 0 0 0 96 40 AC 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 54 51 53 65 72 76 65 72 
<--48 0 21 27 XX XX XX XX 2 0 0 0 FF FF FF FF 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1B 0 0 0 3C 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 54 51 53 65 72 76 65 72 
<--50 0 F1 3 XX XX XX XX 0 0 0 0 1B 0 0 0 F0 67 AC 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 54 51 53 65 72 76 65 72 
java.net.SocketException: Connection reset by peer: socket write error
        at java.net.SocketOutputStream.socketWrite0(Native Method)
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:124)
        at service.GameListener.run(yyyyyyyy.java:77)

//where xx xx xx xx is char id
//in my previous implementation, should any IO error takes place, close all used sockets.
//but currently i allowed the sockets to stay openned, and realized that proxy continues to try sending packets to client, and proxy still receives packets from server.
02/18/2011 10:19 DragonHeart#2
Quote:
Originally Posted by shitboi View Post
Do you guys have dc's on your proxies every now and then?
I tend of have a dc every 20-40 min after log in. I do not know what is causing it.

When i looked my error stack trace. It took place either at sending to client/server. Those are the times where my proxy is simply relaying packets.

What could be causing this?
And it does dc all your accounts at once?
02/18/2011 11:00 shitboi#3
yeah..... it might be problem with the way i performed exception handling. But yes, my account is dc'ed upon socket io errors.
02/18/2011 11:06 DragonHeart#4
Quote:
Originally Posted by shitboi View Post
yeah..... it might be problem with the way i performed exception handling. But yes, my account is dc'ed upon socket io errors.
Interesting, some people from CoGen got the same problem. Dcing every 20-30 minutes. We thought it had something to do with TQ's client. O well, I can't really help, I ain't a coder =X
02/18/2011 11:28 shitboi#5
i'll test again by stripping off all the bot functions
02/19/2011 18:55 Moloch Amon#6
Redundant question I'm sure but did you block tqwea.dll and block CO reporting IP address? But short answer I think you said it best socket closing. I can confirm it happening with COG too.
02/19/2011 21:06 shitboi#7
Quote:
Originally Posted by Moloch Amon View Post
Redundant question I'm sure but did you block tqwea.dll and block CO reporting IP address? But short answer I think you said it best socket closing. I can confirm it happening with COG too.
I actually didn't block those 2, lol. Any hints or references as to how to get them done?
02/19/2011 21:13 gabrola#8
I'm using a client with zftqat and gamecheck folders deleted, ran my proxy on a noob for about an hour, no disconnects so far.
02/20/2011 04:39 Ian*#9
Quote:
Originally Posted by shitboi View Post
I actually didn't block those 2, lol. Any hints or references as to how to get them done?
back when I was worried about the botchecks and all of that good stuff, their gamecheck wasn't directly reporting anymore, it uses internet explorer's built in proxy service to send data to TQ, so the IP is not the same everytime.

You'd need to use something like wireshark and filter out all of the data going to and from your network based on process name in order to find out exactly how it works now.

Half the speculations around the forums are false as far as blocking said IP address will keep you safe.

best method is to make it completely randomized or mimic another application. such as skype, ventrilo, or another common one.

edit: hooks ftw, no weird issues like the one you're having ;D

but triple check and make sure nothing else in your code / one of the exceptions you are receiving will force sockets to close.
02/20/2011 18:14 shitboi#10
Quote:
Originally Posted by Ian* View Post
back when I was worried about the botchecks and all of that good stuff, their gamecheck wasn't directly reporting anymore, it uses internet explorer's built in proxy service to send data to TQ, so the IP is not the same everytime.

You'd need to use something like wireshark and filter out all of the data going to and from your network based on process name in order to find out exactly how it works now.

Half the speculations around the forums are false as far as blocking said IP address will keep you safe.

best method is to make it completely randomized or mimic another application. such as skype, ventrilo, or another common one.

edit: hooks ftw, no weird issues like the one you're having ;D

but triple check and make sure nothing else in your code / one of the exceptions you are receiving will force sockets to close.
as far as mimic-ing other apps, do you mean naming it different such that it doesn't contain keywords that can catch TQ's attention?

I am a newb wireshark user, i do not know wireshark can log packets on a process based level.
02/20/2011 18:16 shitboi#11
Quote:
Originally Posted by gabrola View Post
I'm using a client with zftqat and gamecheck folders deleted, ran my proxy on a noob for about an hour, no disconnects so far.
so, after trying that your client did not dc?