Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Cabecinha84 committed Oct 2, 2024
1 parent 25fba25 commit 788d2f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ZelBack/src/lib/socketServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ class FluxWebsocketServer {
perMessageDeflate: {
zlibDeflateOptions: {
// See zlib defaults.
chunkSize: 2048,
chunkSize: 1024,
memLevel: 9,
level: 6,
level: 7,
},
zlibInflateOptions: {
chunkSize: 10 * 1024,
Expand All @@ -22,7 +22,7 @@ class FluxWebsocketServer {
serverMaxWindowBits: 15, // Defaults to negotiated value.
clientMaxWindowBits: 15, // Defaults to negotiated value.
// Below options specified as default values.
concurrencyLimit: 2, // Limits zlib concurrency for perf.
concurrencyLimit: 4, // Limits zlib concurrency for perf.
threshold: 128, // Size (in bytes) below which messages
// should not be compressed if context takeover is disabled.
},
Expand Down
6 changes: 3 additions & 3 deletions ZelBack/src/services/fluxCommunication.js
Original file line number Diff line number Diff line change
Expand Up @@ -681,9 +681,9 @@ async function initiateAndHandleConnection(connection) {
perMessageDeflate: {
zlibDeflateOptions: {
// See zlib defaults.
chunkSize: 2048,
chunkSize: 1024,
memLevel: 9,
level: 6,
level: 7,
},
zlibInflateOptions: {
chunkSize: 10 * 1024,
Expand All @@ -694,7 +694,7 @@ async function initiateAndHandleConnection(connection) {
serverMaxWindowBits: 15, // Defaults to negotiated value.
clientMaxWindowBits: 15, // Defaults to negotiated value.
// Below options specified as default values.
concurrencyLimit: 2, // Limits zlib concurrency for perf.
concurrencyLimit: 4, // Limits zlib concurrency for perf.
threshold: 128, // Size (in bytes) below which messages
// should not be compressed if context takeover is disabled.
},
Expand Down

0 comments on commit 788d2f3

Please sign in to comment.