Преглед изворни кода

Tracing (timeout when transferring over FTP+TLS+proxy)

Source commit: 3a43d06c8baf682f0eedd3c13c483b07354bc57e
Martin Prikryl пре 9 година
родитељ
комит
14735eaedb
1 измењених фајлова са 10 додато и 2 уклоњено
  1. 10 2
      source/filezilla/FtpControlSocket.cpp

+ 10 - 2
source/filezilla/FtpControlSocket.cpp

@@ -1279,7 +1279,11 @@ void CFtpControlSocket::OnReceive(int nErrorCode)
             else // end of multi-line found
             {
               m_MultiLine = "";
-              m_pOwner->PostThreadMessage(m_pOwner->m_nInternalMessageID, FZAPI_THREADMSG_PROCESSREPLY, 0);
+              LPARAM lParam = 0;
+              #ifdef _DEBUG
+              lParam = GetTickCount();
+              #endif
+              m_pOwner->PostThreadMessage(m_pOwner->m_nInternalMessageID, FZAPI_THREADMSG_PROCESSREPLY, lParam);
             }
           }
           // start of new multi-line
@@ -1291,7 +1295,11 @@ void CFtpControlSocket::OnReceive(int nErrorCode)
           }
           else
           {
-            m_pOwner->PostThreadMessage(m_pOwner->m_nInternalMessageID, FZAPI_THREADMSG_PROCESSREPLY, 0);
+            LPARAM lParam = 0;
+            #ifdef _DEBUG
+            lParam = GetTickCount();
+            #endif
+            m_pOwner->PostThreadMessage(m_pOwner->m_nInternalMessageID, FZAPI_THREADMSG_PROCESSREPLY, lParam);
           }
         }
         else