mirror of
https://github.com/defold/extension-websocket.git
synced 2025-09-30 09:12:18 +02:00
Issue 13: Added support for connect sequence timeout
Decreased the select timeout when reading headers Don't call callback with DISCONNECTED if the connection was never connected
This commit is contained in:
@@ -89,6 +89,7 @@ namespace dmWebsocket
|
||||
dmSocket::Socket m_Socket;
|
||||
dmSSLSocket::Socket m_SSLSocket;
|
||||
dmArray<Message> m_Messages; // lengths of the messages in the data buffer
|
||||
uint64_t m_ConnectTimeout;
|
||||
uint8_t m_Key[16];
|
||||
State m_State;
|
||||
char* m_Buffer;
|
||||
@@ -97,6 +98,7 @@ namespace dmWebsocket
|
||||
Result m_Status;
|
||||
uint8_t m_SSL:1;
|
||||
uint8_t m_HasHandshakeData:1;
|
||||
uint8_t m_WasConnected:1;
|
||||
uint8_t :6;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user