node-opcua-transport
Advanced tools
Comparing version 2.83.0 to 2.84.0
@@ -156,3 +156,3 @@ "use strict"; | ||
if (this.totalMessageSize > this.maxMessageSize) { | ||
return this._report_error(status_codes_1.StatusCodes2.BadTcpMessageTooLarge, `max message size exceeded: ${this.maxMessageSize}`); | ||
return this._report_error(status_codes_1.StatusCodes2.BadTcpMessageTooLarge, `max message size exceeded: ${this.maxMessageSize} : total message size ${this.totalMessageSize}`); | ||
} | ||
@@ -209,6 +209,6 @@ const binaryStream = new node_opcua_binary_stream_1.BinaryStream(chunk); | ||
this.emit("full_message_body", fullMessageBody); | ||
this._decodeMessageBody(fullMessageBody); | ||
const messageOk = this._decodeMessageBody(fullMessageBody); | ||
// be ready for next block | ||
this._init_new(); | ||
return true; | ||
return messageOk; | ||
} | ||
@@ -245,4 +245,4 @@ } | ||
MessageBuilderBase.defaultMaxChunkCount = 1000; | ||
MessageBuilderBase.defaultMaxMessageSize = 1024 * 64; | ||
MessageBuilderBase.defaultMaxMessageSize = 1024 * 64 * 1024; // 64Mo | ||
MessageBuilderBase.defaultMaxChunkSize = 1024 * 8; | ||
//# sourceMappingURL=message_builder_base.js.map |
{ | ||
"name": "node-opcua-transport", | ||
"version": "2.83.0", | ||
"version": "2.84.0", | ||
"description": "pure nodejs OPCUA SDK - module -transport", | ||
@@ -47,3 +47,3 @@ "main": "./dist/source/index.js", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "3311f8ce9e86837fde72e923f3121072008ccdd4" | ||
"gitHead": "47af3803b75cecd9da509053e89c023b981a34de" | ||
} |
@@ -94,3 +94,3 @@ /** | ||
public static defaultMaxChunkCount = 1000; | ||
public static defaultMaxMessageSize = 1024 * 64; | ||
public static defaultMaxMessageSize = 1024 * 64 * 1024; // 64Mo | ||
public static defaultMaxChunkSize = 1024 * 8; | ||
@@ -262,3 +262,3 @@ | ||
if (this.totalMessageSize > this.maxMessageSize) { | ||
return this._report_error(StatusCodes2.BadTcpMessageTooLarge, `max message size exceeded: ${this.maxMessageSize}`); | ||
return this._report_error(StatusCodes2.BadTcpMessageTooLarge, `max message size exceeded: ${this.maxMessageSize} : total message size ${this.totalMessageSize}`); | ||
} | ||
@@ -334,6 +334,6 @@ | ||
this._decodeMessageBody(fullMessageBody); | ||
const messageOk = this._decodeMessageBody(fullMessageBody); | ||
// be ready for next block | ||
this._init_new(); | ||
return true; | ||
return messageOk; | ||
} | ||
@@ -340,0 +340,0 @@ } else if (messageHeader.isFinal === "A") { |
@@ -21,3 +21,2 @@ /** | ||
import { TCP_transport } from "./tcp_transport"; | ||
import { TCPErrorMessage } from "./TCPErrorMessage"; | ||
import { decodeMessage, packTcpMessage } from "./tools"; | ||
@@ -24,0 +23,0 @@ import { doTraceHelloAck } from "./utils"; |
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
299082
4973