We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d559b81 commit 5a25cd9Copy full SHA for 5a25cd9
packages/microservices/helpers/json-socket.ts
@@ -24,8 +24,9 @@ export class JsonSocket extends TcpSocket {
24
this.buffer += data;
25
26
if (this.buffer.length > MAX_BUFFER_SIZE) {
27
+ const bufferLength = this.buffer.length;
28
this.buffer = '';
- throw new MaxPacketLengthExceededException(this.buffer.length);
29
+ throw new MaxPacketLengthExceededException(bufferLength);
30
}
31
32
if (this.contentLength === null) {
0 commit comments