Cheaper timeout system

This commit is contained in:
Alex Hultman
2021-02-01 23:51:47 +01:00
parent 20fbdbb7ae
commit 49929a6c74
4 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -300,7 +300,7 @@ public:
}
/* Arm idleTimeout */
us_socket_timeout(SSL, (us_socket_t *) webSocket, webSocketContextData->idleTimeout);
us_socket_timeout(SSL, (us_socket_t *) webSocket, webSocketContextData->idleTimeoutComponents.first);
/* Move construct the UserData right before calling open handler */
new (webSocket->getUserData()) UserData(std::move(userData));