node-opcua-transport
Advanced tools
Comparing version 2.105.0 to 2.106.0
@@ -112,5 +112,11 @@ "use strict"; | ||
this.maxChunkCount = maxChunkCount; | ||
if (maxMessageSize / sendBufferSize > maxChunkCount || maxMessageSize / receiveBufferSize > maxChunkCount) { | ||
warningLog(`Warning : maxMessageSize / sendBufferSize ${maxMessageSize / sendBufferSize}> maxChunkCount ${maxChunkCount} | ||
|| maxMessageSize / receiveBufferSize ${maxMessageSize / receiveBufferSize} < maxChunkCount `); | ||
if (maxChunkCount !== 0) { | ||
if (maxMessageSize / sendBufferSize > maxChunkCount) { | ||
const expectedMaxChunkCount = Math.ceil(maxMessageSize / sendBufferSize); | ||
warningLog(`Warning: maxChunkCount is not big enough : maxMessageSize / sendBufferSize ${expectedMaxChunkCount} > maxChunkCount ${maxChunkCount}`); | ||
} | ||
if (maxMessageSize / receiveBufferSize > maxChunkCount) { | ||
const expectedMaxChunkCount = Math.ceil(maxMessageSize / receiveBufferSize); | ||
warningLog(`Warning: maxChunkCount is not big enough :maxMessageSize / sendBufferSize ${expectedMaxChunkCount} > maxChunkCount ${maxChunkCount}`); | ||
} | ||
} | ||
@@ -117,0 +123,0 @@ // reinstall packetAssembler with correct limits |
{ | ||
"name": "node-opcua-transport", | ||
"version": "2.105.0", | ||
"version": "2.106.0", | ||
"description": "pure nodejs OPCUA SDK - module transport", | ||
@@ -48,3 +48,3 @@ "main": "./dist/source/index.js", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "41c30f321debfe92128905d97a52426b9d7f9b9e", | ||
"gitHead": "6fe67f5a64192bff5c7f590c4de4e827ae0c551a", | ||
"files": [ | ||
@@ -51,0 +51,0 @@ "dist", |
@@ -233,5 +233,15 @@ /* eslint-disable @typescript-eslint/ban-types */ | ||
if (maxMessageSize / sendBufferSize > maxChunkCount || maxMessageSize / receiveBufferSize > maxChunkCount) { | ||
warningLog(`Warning : maxMessageSize / sendBufferSize ${maxMessageSize / sendBufferSize}> maxChunkCount ${maxChunkCount} | ||
|| maxMessageSize / receiveBufferSize ${maxMessageSize / receiveBufferSize} < maxChunkCount `); | ||
if (maxChunkCount !== 0) { | ||
if (maxMessageSize / sendBufferSize > maxChunkCount) { | ||
const expectedMaxChunkCount = Math.ceil(maxMessageSize / sendBufferSize); | ||
warningLog( | ||
`Warning: maxChunkCount is not big enough : maxMessageSize / sendBufferSize ${expectedMaxChunkCount} > maxChunkCount ${maxChunkCount}` | ||
); | ||
} | ||
if (maxMessageSize / receiveBufferSize > maxChunkCount) { | ||
const expectedMaxChunkCount = Math.ceil(maxMessageSize / receiveBufferSize); | ||
warningLog( | ||
`Warning: maxChunkCount is not big enough :maxMessageSize / sendBufferSize ${expectedMaxChunkCount} > maxChunkCount ${maxChunkCount}` | ||
); | ||
} | ||
} | ||
@@ -238,0 +248,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
385234
5067