Optimize getSendBuffer for large sends

This commit is contained in:
Alex Hultman
2021-09-19 01:19:29 +00:00
parent 6617e7bd5c
commit 069e66b31c
4 changed files with 39 additions and 36 deletions
+3 -3
View File
@@ -19,10 +19,10 @@ int main() {
.passphrase = "1234"
}).ws<PerSocketData>("/*", {
/* Settings */
.compression = uWS::SHARED_COMPRESSOR,
.maxPayloadLength = 16 * 1024 * 1024,
.compression = uWS::DEDICATED_COMPRESSOR_4KB,
.maxPayloadLength = 100 * 1024 * 1024,
.idleTimeout = 16,
.maxBackpressure = 1 * 1024 * 1024,
.maxBackpressure = 100 * 1024 * 1024,
.closeOnBackpressureLimit = false,
.resetIdleTimeoutOnSend = false,
.sendPingsAutomatically = true,