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]:
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.