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,7 +606,14 @@ public class LoginServerThread extends Thread
_blowfish.crypt(data, 2, size);
_out.write(data);
_out.flush();
try
{
_out.flush();
}
catch (IOException e)
{
// LoginServer might have terminated.
}
}
}
catch (Exception e)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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