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();
|
auto state = _state.load();
|
||||||
if (state != Connection::State::Failed) {
|
if (state != Connection::State::Failed) {
|
||||||
state = Connection::State::Disconnected;
|
state = Connection::State::Disconnected;
|
||||||
#ifdef __linux__
|
// hack to fix SSL streams
|
||||||
// hack to fix SSL streams on linux
|
if constexpr (ST == SocketType::Ssl) {
|
||||||
if (_config._socketType == SocketType::Ssl) {
|
|
||||||
state = Connection::State::Failed;
|
state = Connection::State::Failed;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
_state.store(state);
|
_state.store(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue