maxLifetime impl. WIP, waiting for uSockets bump
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user