Yardım Handshake: client_time 2438958 server_time 2618958

  • Konuyu açan Konuyu açan allien
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 5
  • Gösterim Gösterim 155
Konu sahibi bu konuda soru soruyor. Sorusu ile ilgili bilgisi olanların yanıtlamasını bekliyor.

allien

*__*
MT Üye
Mesaj
226
Çözümler
12
Beğeni
70
Puan
499
Ticaret Puanı
0
merhaba, syslog içerisinde sürekli handshake veriyor ve örneğin karakter alması gereken affecti geç alıyor bu neyden kaynaklanıyor olabilir?


Kod:
Genişlet Daralt Kopyala
Oct 30 19:00:13 :: InputDB::login_success: nsdf9
Oct 30 19:00:14 :: SYSTEM: new connection from [192.168.1.38] fd: 19 handshake 2723472968 output input_len 0, ptr 0x519fca00
Oct 30 19:00:14 :: MARK_SERVER: Login
Oct 30 19:00:14 :: LargePacket Size 340
Oct 30 19:00:14 :: MARK_SERVER: GuildMarkIDXList 347 bytes sent.
Oct 30 19:00:14 :: MARK_SERVER: Sending blocks. (imgIdx 0 diff 0 size 10)
Oct 30 19:00:14 :: SYSTEM: closing socket. DESC #19
Oct 30 19:00:16 :: SYSTEM: new connection from [192.168.1.38] fd: 19 handshake 1520868250 output input_len 0, ptr 0x519fca00
Oct 30 19:00:16 :: SYSTEM: closing socket. DESC #18
Oct 30 19:00:16 :: Handshake: lower than zero -40
Oct 30 19:00:16 :: Handshake: client_time 0 server_time 106660
Oct 30 19:00:16 :: LOGIN_BY_KEY: nsdf9 key 705334352


Oct 30 19:06:26 :: do_restart: restart here
Oct 30 19:06:26 :: AddAffect aligtestet type 215 apply 0 0 flag 28 duration 5
Oct 30 19:09:09 :: Handshake: client_time 459069 server_time 639069 name: alignmentest
Oct 30 19:09:13 :: SAVE: alignmentest 966594x275956
Oct 30 19:09:16 :: Handshake: client_time 466229 server_time 646230 name: aligtestet
Oct 30 19:09:20 :: AddAffect aligtestet type 921 apply 6 16000 flag 0 duration 78840000
Oct 30 19:09:20 :: SAVE: aligtestet 966485x275873
Oct 30 19:11:02 :: COMMAND: aligtestet: pvp
Oct 30 19:11:04 :: alignmentest: USE_SKILL: 16 pkVictim 0x51d1bd80
Oct 30 19:11:05 :: CQuestManager::Kill QUEST_KILL_EVENT (pc=44, npc=0)
Oct 30 19:11:05 :: CQuestManager::Kill QUEST_DIE_EVENT (pc=47, npc=0)
Oct 30 19:11:15 :: COMMAND: aligtestet: restart_here
Oct 30 19:11:15 :: do_restart: restart here
Oct 30 19:11:15 :: NO_DEATH_PENALTY_LUCK(aligtestet)
Oct 30 19:11:15 :: AddAffect aligtestet type 215 apply 0 0 flag 28 duration 5
Oct 30 19:12:09 :: Handshake: client_time 639069 server_time 819069 name: alignmentest
Oct 30 19:12:12 :: HORSE STAMINA + 0x51a9a900
Oct 30 19:12:12 :: SAVE: alignmentest 966594x275956
Oct 30 19:12:16 :: Handshake: client_time 646230 server_time 826232 name: aligtestet
Oct 30 19:12:19 :: HORSE STAMINA + 0x51a06900
Oct 30 19:12:19 :: AddAffect aligtestet type 921 apply 6 16000 flag 0 duration 78840000
Oct 30 19:12:19 :: SAVE: aligtestet 966485x275873
Oct 30 19:15:09 :: Handshake: client_time 819069 server_time 999069 name: alignmentest
Oct 30 19:15:13 :: SAVE: alignmentest 966594x275956
Oct 30 19:15:16 :: Handshake: client_time 826232 server_time 1006229 name: aligtestet
Oct 30 19:15:20 :: AddAffect aligtestet type 921 apply 6 16000 flag 0 duration 78840000
Oct 30 19:15:20 :: SAVE: aligtestet 966485x275873
Oct 30 19:18:09 :: Handshake: client_time 999069 server_time 1179033 name: alignmentest
Oct 30 19:18:13 :: SAVE: alignmentest 966594x275956
Oct 30 19:18:16 :: Handshake: client_time 1006229 server_time 1186192 name: aligtestet
Oct 30 19:18:20 :: AddAffect aligtestet type 921 apply 6 16000 flag 0 duration 78840000
Oct 30 19:18:20 :: SAVE: aligtestet 966485x275873
Oct 30 19:21:09 :: Handshake: client_time 1179033 server_time 1359032 name: alignmentest
Oct 30 19:21:13 :: SAVE: alignmentest 966594x275956
Oct 30 19:21:16 :: Handshake: client_time 1186192 server_time 1366192 name: aligtestet
Oct 30 19:21:20 :: AddAffect aligtestet type 921 apply 6 16000 flag 0 duration 78840000
Oct 30 19:21:20 :: SAVE: aligtestet 966485x275873
Oct 30 19:24:09 :: Handshake: client_time 1359032 server_time 1539032 name: alignmentest
Oct 30 19:24:13 :: SAVE: alignmentest 966594x275956
Oct 30 19:24:16 :: Handshake: client_time 1366192 server_time 1546192 name: aligtestet
Oct 30 19:24:20 :: AddAffect aligtestet type 921 apply 6 16000 flag 0 duration 78840000
Oct 30 19:24:20 :: SAVE: aligtestet 966485x275873
Oct 30 19:27:09 :: Handshake: client_time 1539032 server_time 1719032 name: alignmentest
Oct 30 19:27:13 :: SAVE: alignmentest 966594x275956
Oct 30 19:27:16 :: Handshake: client_time 1546192 server_time 1726196 name: aligtestet
Oct 30 19:27:19 :: AddAffect aligtestet type 921 apply 6 16000 flag 0 duration 78840000
Oct 30 19:27:19 :: SAVE: aligtestet 966485x275873
Oct 30 19:30:08 :: Handshake: client_time 1719032 server_time 1898993 name: alignmentest
Oct 30 19:30:12 :: SAVE: alignmentest 966594x275956
Oct 30 19:30:16 :: Handshake: client_time 1726196 server_time 1906153 name: aligtestet
Oct 30 19:30:20 :: AddAffect aligtestet type 921 apply 6 16000 flag 0 duration 78840000
Oct 30 19:30:20 :: SAVE: aligtestet 966485x275873
Oct 30 19:33:08 :: Handshake: client_time 1898993 server_time 2078993 name: alignmentest
Oct 30 19:33:13 :: SAVE: alignmentest 966594x275956
Oct 30 19:33:16 :: Handshake: client_time 1906153 server_time 2086153 name: aligtestet
Oct 30 19:33:20 :: AddAffect aligtestet type 921 apply 6 16000 flag 0 duration 78840000
Oct 30 19:33:20 :: SAVE: aligtestet 966485x275873
Oct 30 19:36:08 :: Handshake: client_time 2078993 server_time 2258992 name: alignmentest
Oct 30 19:36:13 :: SAVE: alignmentest 966594x275956
Oct 30 19:36:16 :: Handshake: client_time 2086153 server_time 2266153 name: aligtestet
Oct 30 19:36:20 :: AddAffect aligtestet type 921 apply 6 16000 flag 0 duration 78840000
Oct 30 19:36:20 :: SAVE: aligtestet 966485x275873
Oct 30 19:39:08 :: Handshake: client_time 2258992 server_time 2438958 name: alignmentest
Oct 30 19:39:13 :: SAVE: alignmentest 966594x275956
Oct 30 19:39:16 :: Handshake: client_time 2266153 server_time 2446116 name: aligtestet
Oct 30 19:39:20 :: AddAffect aligtestet type 921 apply 6 16000 flag 0 duration 78840000
Oct 30 19:39:20 :: SAVE: aligtestet 966485x275873
Oct 30 19:39:31 :: SECTREE DIFFER: aligtestet 150x43 was 151x43 dist 1.0m
Oct 30 19:39:32 :: COMMAND: aligtestet: pvp
Oct 30 19:39:35 :: COMMAND: alignmentest: pvp
Oct 30 19:39:38 :: alignmentest: USE_SKILL: 16 pkVictim 0x51d1bd80
Oct 30 19:39:39 :: alignmentest: USE_SKILL: 17 pkVictim 0x51d1bd80
Oct 30 19:39:42 :: alignmentest: USE_SKILL: 21 pkVictim 0x0
Oct 30 19:39:44 :: alignmentest: USE_SKILL: 20 pkVictim 0x51d1bd80
Oct 30 19:39:45 :: alignmentest - Skill 20 -> aligtestet
Oct 30 19:39:45 :: CQuestManager::Kill QUEST_KILL_EVENT (pc=44, npc=0)
Oct 30 19:39:45 :: CQuestManager::Kill QUEST_DIE_EVENT (pc=47, npc=0)
Oct 30 19:39:45 :: CRUSH! alignmentest -> aligtestet (966360 275896) -> (966166 275846) executed (fall): 1
Oct 30 19:39:45 :: MOVE: aligtestet trying to move as dead
Oct 30 19:39:45 :: SHOW: aligtestet 966360x275896x0
Oct 30 19:39:45 ::       in same sectree
Oct 30 19:41:38 :: COMMAND: aligtestet: restart_here
Oct 30 19:41:38 :: do_restart: restart here
Oct 30 19:41:38 :: AddAffect aligtestet type 215 apply 0 0 flag 28 duration 5
Oct 30 19:42:08 :: Handshake: client_time 2438958 server_time 2618958 name: alignmentest
Oct 30 19:42:13 :: SAVE: alignmentest 966494x275930
Oct 30 19:42:16 :: Handshake: client_time 2446116 server_time 2626118 name: aligtestet
Oct 30 19:42:20 :: AddAffect aligtestet type 921 apply 6 16000 flag 0 duration 78840000
Oct 30 19:42:20 :: SAVE: aligtestet 966360x275896
 
Bu bir hata değil. Client ve server saati farklı olabilir. Sunucu bunu zaten anlıyordur
 
Hataya neden olan kod bloğu.


C++:
Genişlet Daralt Kopyala
bool DESC::HandshakeProcess(DWORD dwTime, long lDelta, bool bInfiniteRetry)
{
    DWORD dwCurTime = get_dword_time();

    if (lDelta < 0)
    {
        sys_err("Desc::HandshakeProcess : value error (lDelta %d, ip %s)", lDelta, m_stHost.c_str());
        return false;
    }

    int bias = (int) (dwCurTime - (dwTime + lDelta));

    if (bias >= 0 && bias <= 50)
    {
        if (bInfiniteRetry)
        {
            BYTE bHeader = HEADER_GC_TIME_SYNC;
            Packet(&bHeader, sizeof(BYTE));
        }

        if (GetCharacter())
            sys_log(0, "Handshake: client_time %u server_time %u name: %s", m_dwClientTime, dwCurTime, GetCharacter()->GetName());
        else
            sys_log(0, "Handshake: client_time %u server_time %u", m_dwClientTime, dwCurTime, lDelta);

        m_dwClientTime = dwCurTime;
        m_bHandshaking = false;
        return true;
    }

    long lNewDelta = (long) (dwCurTime - dwTime) / 2;

    if (lNewDelta < 0)
    {
        sys_log(0, "Handshake: lower than zero %d", lNewDelta);
        lNewDelta = (dwCurTime - m_dwHandshakeSentTime) / 2;
    }

    sys_log(1, "Handshake: ServerTime %u dwTime %u lDelta %d SentTime %u lNewDelta %d", dwCurTime, dwTime, lDelta, m_dwHandshakeSentTime, lNewDelta);

    if (!bInfiniteRetry)
        if (++m_iHandshakeRetry > HANDSHAKE_RETRY_LIMIT)
        {
            sys_err("handshake retry limit reached! (limit %d character %s)",
                    HANDSHAKE_RETRY_LIMIT, GetCharacter() ? GetCharacter()->GetName() : "!NO CHARACTER!");
            SetPhase(PHASE_CLOSE);
            return false;
        }

    SendHandshake(dwCurTime, lNewDelta);
    return false;
}
 
Geri
Üst