maxLifetime impl. WIP, waiting for uSockets bump

This commit is contained in:
Alex Hultman
2022-12-27 15:17:07 +01:00
parent 27d93c8d0c
commit b647f20a6d
4 changed files with 19 additions and 2 deletions
+6
View File
@@ -371,6 +371,12 @@ private:
return s;
});
us_socket_context_on_long_timeout(SSL, getSocketContext(), [](auto *s) {
((WebSocket<SSL, isServer, USERDATA> *) s)->end();
return s;
});
/* Handle socket timeouts, simply close them so to not confuse client with FIN */
us_socket_context_on_timeout(SSL, getSocketContext(), [](auto *s) {