Skip to content

Commit

Permalink
Fix test Java server
Browse files Browse the repository at this point in the history
  • Loading branch information
bierbaum committed Dec 6, 2010
1 parent 0305926 commit e62b28a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/java/com/twitter/finagle/javaapi/HttpServerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
import com.twitter.util.*;

public class HttpServerTest {
private byte[] buf = new byte[10<<20];
private ChannelBuffer cb = ChannelBuffers.wrappedBuffer(buf);
private static byte[] buf = new byte[10<<20];
private static ChannelBuffer cb = ChannelBuffers.wrappedBuffer(buf);

HttpServerTest() {
static {
Arrays.fill(buf, (byte)'.');
}

Expand Down Expand Up @@ -47,6 +47,8 @@ public Future<HttpResponse> apply(HttpRequest request) {
.codec(Codec4J.http())
.service(service)
.bindTo(addr)
.tls("keystore.jks", "password")
.compressionLevel(6)
.build();
}

Expand Down

0 comments on commit e62b28a

Please sign in to comment.