mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +01:00
Set timeouts for FTP passive connections
Set send/receive timeouts for FTP passive connections
This commit is contained in:
parent
ef516fa767
commit
8e0a852716
@ -441,6 +441,8 @@ StreamSocket FTPClientSession::passiveDataConnection(const std::string& command,
|
||||
SocketAddress sa(sendPassiveCommand());
|
||||
StreamSocket sock;
|
||||
sock.connect(sa, _timeout);
|
||||
sock.setReceiveTimeout(_timeout);
|
||||
sock.setSendTimeout(_timeout);
|
||||
std::string response;
|
||||
int status = sendCommand(command, arg, response);
|
||||
if (!isPositivePreliminary(status))
|
||||
|
Loading…
Reference in New Issue
Block a user