浏览代码

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