tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dimitar Valov <dimitar.va...@gmail.com>
Subject java.nio.BufferOverflowException: null
Date Mon, 01 Aug 2016 09:09:10 GMT
Hello,

When using WsWebSocketContainer.connectToServer with ClientEndpointConfig I
get java.nio.BufferOverflowException in case the HTTP headers are more than
4k.

The used ByteBuffer is 4k:
https://github.com/apache/tomcat80/blob/trunk/java/org/apache/tomcat/websocket/WsWebSocketContainer.java#L629
.

There are no ways to configure it's size. What's the reason for picking 4k?
I wonder if making this configurable or picking a larger size is more
appropriate.

Best Regards,
Dimitar

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message