NETTY-393: SslHandler infinite loop on Apache Harmony with large payload
Increased the SSL buffer size by 1024 as advised
This commit is contained in:
parent
370160d0a5
commit
2351797a43
@ -40,8 +40,8 @@ import javax.net.ssl.SSLEngine;
|
|||||||
*/
|
*/
|
||||||
public class SslBufferPool {
|
public class SslBufferPool {
|
||||||
|
|
||||||
// Add 1024 as a room for compressed data.
|
// Add 1024 as a room for compressed data and another 1024 for Apache Harmony compatibility.
|
||||||
private static final int MAX_PACKET_SIZE = 16665 + 1024;
|
private static final int MAX_PACKET_SIZE = 16665 + 2048;
|
||||||
private static final int DEFAULT_POOL_SIZE = MAX_PACKET_SIZE * 1024;
|
private static final int DEFAULT_POOL_SIZE = MAX_PACKET_SIZE * 1024;
|
||||||
|
|
||||||
private final ByteBuffer[] pool;
|
private final ByteBuffer[] pool;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user