#5617 Make PacketStreamFilter adopt all socket types
This commit is contained in:
parent
f4f57e1f95
commit
0d84e4eed6
|
@ -152,8 +152,7 @@ Client::connect()
|
||||||
|
|
||||||
// filter socket messages, including a packetizing filter
|
// filter socket messages, including a packetizing filter
|
||||||
m_stream = socket;
|
m_stream = socket;
|
||||||
bool adopt = !m_useSecureNetwork;
|
m_stream = new PacketStreamFilter(m_events, m_stream, true);
|
||||||
m_stream = new PacketStreamFilter(m_events, m_stream, adopt);
|
|
||||||
|
|
||||||
// connect
|
// connect
|
||||||
LOG((CLOG_DEBUG1 "connecting to server"));
|
LOG((CLOG_DEBUG1 "connecting to server"));
|
||||||
|
|
|
@ -155,8 +155,7 @@ ClientListener::handleClientAccepted(const Event&, void* vsocket)
|
||||||
IDataSocket* socket = static_cast<IDataSocket*>(vsocket);
|
IDataSocket* socket = static_cast<IDataSocket*>(vsocket);
|
||||||
|
|
||||||
// filter socket messages, including a packetizing filter
|
// filter socket messages, including a packetizing filter
|
||||||
bool adopt = !m_useSecureNetwork;
|
synergy::IStream* stream = new PacketStreamFilter(m_events, socket, true);
|
||||||
synergy::IStream* stream = new PacketStreamFilter(m_events, socket, adopt);
|
|
||||||
assert(m_server != NULL);
|
assert(m_server != NULL);
|
||||||
|
|
||||||
// create proxy for unknown client
|
// create proxy for unknown client
|
||||||
|
|
Loading…
Reference in New Issue