mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 02:53:10 +01:00
fix(Socket): shutdown fixes from pull #3448
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user