mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 03:20:11 +01:00
ported 1.4.4 branch changes (needs build checks and test runs!)
This commit is contained in:
@@ -329,10 +329,13 @@ std::string FTPClientSession::extractPath(const std::string& response)
|
||||
|
||||
StreamSocket FTPClientSession::establishDataConnection(const std::string& command, const std::string& arg)
|
||||
{
|
||||
StreamSocket ss;
|
||||
if (_passiveMode)
|
||||
return passiveDataConnection(command, arg);
|
||||
ss = passiveDataConnection(command, arg);
|
||||
else
|
||||
return activeDataConnection(command, arg);
|
||||
ss = activeDataConnection(command, arg);
|
||||
ss.setReceiveTimeout(_timeout);
|
||||
return ss;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user