major bug fixes
This commit is contained in:
parent
9728906556
commit
d6144c4483
39 changed files with 483 additions and 53 deletions
|
|
@ -116,6 +116,11 @@ class RemoteHost {
|
|||
// ---- Handshake + per-client loop --------------------------------------
|
||||
|
||||
void _handleSocket(WebSocket socket) {
|
||||
// Keepalive: ping idle clients so a controller that vanished without a
|
||||
// close frame (crashed, walked out of Wi-Fi range) is detected and pruned
|
||||
// instead of lingering as a zombie in `_clients`.
|
||||
socket.pingInterval = const Duration(seconds: 15);
|
||||
|
||||
final nonce = RemoteAuth.newNonce();
|
||||
var authed = false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue