mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
fix: timeout does not work when ftp passive connect (#2463)
This commit is contained in:
parent
43f1d5617a
commit
e7e90e2465
@ -439,7 +439,8 @@ StreamSocket FTPClientSession::activeDataConnection(const std::string& command,
|
||||
StreamSocket FTPClientSession::passiveDataConnection(const std::string& command, const std::string& arg)
|
||||
{
|
||||
SocketAddress sa(sendPassiveCommand());
|
||||
StreamSocket sock(sa);
|
||||
StreamSocket sock;
|
||||
sock.connect(sa, _timeout);
|
||||
std::string response;
|
||||
int status = sendCommand(command, arg, response);
|
||||
if (!isPositivePreliminary(status))
|
||||
|
Loading…
Reference in New Issue
Block a user