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.
2 parents c6eb0e4 + 5a25cd9 commit 059fe01Copy full SHA for 059fe01
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