cleanup / use a websocket instead of raw websockettransport
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
|
||||
#include "IXWebSocketTransport.h"
|
||||
#include "IXWebSocketHttpHeaders.h"
|
||||
#include "IXSocketConnect.h" // for configure, cleanup, move it back to Socket
|
||||
#include "IXSocketConnect.h"
|
||||
|
||||
#include "IXSocket.h"
|
||||
#ifdef IXWEBSOCKET_USE_TLS
|
||||
@ -387,6 +387,9 @@ namespace ix
|
||||
{
|
||||
_requestInitCancellation = false;
|
||||
|
||||
// Set the socket to non blocking mode + other tweaks
|
||||
SocketConnect::configure(fd);
|
||||
|
||||
_socket.reset();
|
||||
_socket = std::make_shared<Socket>(fd);
|
||||
|
||||
|
Reference in New Issue
Block a user