Allow sender to buffer requests

This commit is contained in:
NI
2019-12-18 21:36:55 +08:00
parent 67060b6b70
commit cbb51614dc
3 changed files with 165 additions and 33 deletions

View File

@@ -189,7 +189,9 @@ class Dial {
throw e;
}
},
4096 - 64 // Server has a 4096 bytes receive buffer, can be no greater
4096 - 64, // Server has a 4096 bytes receive buffer, can be no greater,
30, // 30ms input delay
10 // max 10 buffered requests
);
let senderNonce = crypt.generateNonce();