Manage probable connection termination.

This commit is contained in:
MobiusDevelopment 2022-12-13 22:36:56 +00:00
parent d640e36def
commit 65c2ebe0a9
62 changed files with 496 additions and 62 deletions

View File

@ -606,8 +606,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -606,8 +606,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -507,8 +507,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -408,8 +408,15 @@ public class GameServerThread extends Thread
_out.write(len & 0xff);
_out.write((len >> 8) & 0xff);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -508,8 +508,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -247,8 +247,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -599,8 +599,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -599,8 +599,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -599,8 +599,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -608,8 +608,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -608,8 +608,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{

View File

@ -609,8 +609,15 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)
{

View File

@ -249,8 +249,15 @@ public class GameServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
try
{
_out.flush();
}
catch (IOException e)
{
// GameServer might have terminated.
}
}
}
catch (IOException e)
{