andreachild commented on code in PR #2749:
URL: https://github.com/apache/tinkerpop/pull/2749#discussion_r1735292783


##########
gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/handler/HttpGremlinResponseStreamDecoder.java:
##########
@@ -79,8 +79,8 @@ protected void decode(ChannelHandlerContext ctx, 
DefaultHttpObject msg, List<Obj
             ByteBuf content = ((HttpContent) msg).content();
             Attribute<Integer> bytesRead = ctx.channel().attr(BYTES_READ);
             bytesRead.set(bytesRead.get() + content.readableBytes());
-            if (bytesRead.get() > maxContentLength) {
-                throw new TooLongFrameException("Response exceeded " + 
maxContentLength + " bytes.");
+            if (maxResponseContentLength > 0 && bytesRead.get() > 
maxResponseContentLength) {

Review Comment:
   Changed to store the bytes read as Double instead of Integer.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to