Connection doesn't dispose immediately to incorrect password users
When user connect to my shard with incorrect username/password, they freeze on "Verify Account". But not the invalid credential page.
The connection is not disposed immediately with state:
However in the console, I can found:
I have read through these:
\Scripts\Accounting\AccountHandlers.cs
\Server\Network\PackerHandlers.cs
\Server\Network\Packets.cs
Any idea?
When user connect to my shard with incorrect username/password, they freeze on "Verify Account". But not the invalid credential page.
The connection is not disposed immediately with state:
Code:
tcp 0 0 208.219.161.175:2593 61.10.98.34:50099 FIN_WAIT2
However in the console, I can found:
Code:
Login: 61.10.98.34: Invalid password for 'ntony'
Client: 61.10.98.34: Disconnected. [0 Online]
I have read through these:
\Scripts\Accounting\AccountHandlers.cs
Code:
else if ( !acct.CheckPassword( pw ) )
{
Console.WriteLine( "Login: {0}: Invalid password for '{1}'", e.State, un );
e.RejectReason = ALRReason.BadPass;
}
\Server\Network\PackerHandlers.cs
Code:
public static void AccountLogin_ReplyRej( NetState state, ALRReason reason )
{
state.Send( new AccountLoginRej( reason ) );
state.Dispose();
}
\Server\Network\Packets.cs
Code:
public enum ALRReason : byte
{
Invalid = 0x00,
InUse = 0x01,
Blocked = 0x02,
BadPass = 0x03,
Idle = 0xFE,
BadComm = 0xFF
}
public sealed class AccountLoginRej : Packet
{
public AccountLoginRej( ALRReason reason ) : base( 0x82, 2 )
{
m_Stream.Write( (byte)reason );
}
}
Any idea?