mirror of https://gitee.com/bigwinds/arangodb
don't re-use connection objects on windows and mac either (#10576)
* don't re-use connection objects on windows and mac either * Update 3rdParty/fuerte/src/GeneralConnection.cpp Co-Authored-By: Simon <simon@graetzer.org>
This commit is contained in:
parent
d30e873945
commit
c4f16523b4
|
@ -75,12 +75,10 @@ void GeneralConnection<ST>::shutdownConnection(const Error err,
|
|||
auto state = _state.load();
|
||||
if (state != Connection::State::Failed) {
|
||||
state = Connection::State::Disconnected;
|
||||
#ifdef __linux__
|
||||
// hack to fix SSL streams on linux
|
||||
if (_config._socketType == SocketType::Ssl) {
|
||||
// hack to fix SSL streams
|
||||
if constexpr (ST == SocketType::Ssl) {
|
||||
state = Connection::State::Failed;
|
||||
}
|
||||
#endif
|
||||
_state.store(state);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue