Skip to content

Commit

Permalink
NETTY-393: SslHandler infinite loop on Apache Harmony with large payload
Browse files Browse the repository at this point in the history
Increased the SSL buffer size by 1024 as advised
  • Loading branch information
trustin committed Apr 1, 2011
1 parent f3899e8 commit 94ac810
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jboss/netty/handler/ssl/SslBufferPool.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
*/
public class SslBufferPool {

// Add 1024 as a room for compressed data.
private static final int MAX_PACKET_SIZE = 16665 + 1024;
// Add 1024 as a room for compressed data and another 1024 for Apache Harmony compatibility.
private static final int MAX_PACKET_SIZE = 16665 + 2048;
private static final int DEFAULT_POOL_SIZE = MAX_PACKET_SIZE * 1024;

private final ByteBuffer[] pool;
Expand Down

0 comments on commit 94ac810

Please sign in to comment.