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