As per discussion in bug #1612106, change default socket flag from NONE to NOWAIT to prevent application hang
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43905 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -87,7 +87,7 @@ wxFTP::wxFTP()
|
|||||||
m_passwd << wxGetUserId() << wxT('@') << wxGetFullHostName();
|
m_passwd << wxGetUserId() << wxT('@') << wxGetFullHostName();
|
||||||
|
|
||||||
SetNotify(0);
|
SetNotify(0);
|
||||||
SetFlags(wxSOCKET_NONE);
|
SetFlags(wxSOCKET_NOWAIT);
|
||||||
m_bPassive = true;
|
m_bPassive = true;
|
||||||
SetDefaultTimeout(60); // Default is Sixty Seconds
|
SetDefaultTimeout(60); // Default is Sixty Seconds
|
||||||
m_bEncounteredError = false;
|
m_bEncounteredError = false;
|
||||||
|
Reference in New Issue
Block a user