1
0
Fork 0

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:
Wilfried Goesgens 2019-11-29 14:44:06 +01:00 committed by KVS85
parent d30e873945
commit c4f16523b4
1 changed files with 2 additions and 4 deletions

View File

@ -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);
} }