fix(Socket): shutdown fixes from pull #3448

This commit is contained in:
Alex Fabijanic
2022-03-31 19:03:27 +00:00
parent 3bab3548f4
commit 3fb001f397
6 changed files with 85 additions and 1 deletions

View File

@@ -64,6 +64,9 @@ public:
bool isSecure() const;
/// Returns true if the session is FTPS.
void forceSessionReuse(bool force = true);
/// Enable or disable session reusing
protected:
virtual StreamSocket establishDataConnection(const std::string& command, const std::string& arg);
/// Create secure data connection
@@ -80,6 +83,7 @@ private:
bool _enableFTPS = true;
bool _secureDataConnection = false;
bool _forceSessionReuse = false;
Context::Ptr _pContext;
};
@@ -95,6 +99,12 @@ inline bool FTPSClientSession::isSecure() const
}
inline void FTPSClientSession::forceSessionReuse(bool force)
{
_forceSessionReuse = force;
}
} } // namespace Poco::Net