summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/BinaryListener.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/BinaryListener.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/BinaryListener.java
index abf5721c..8f050c21 100644
--- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/BinaryListener.java
+++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/BinaryListener.java
@@ -29,7 +29,7 @@ import org.openslx.thrifthelper.TBinaryProtocolSafe;
public class BinaryListener implements Runnable {
private static final Logger log = LogManager.getLogger(BinaryListener.class);
- private static final int MAX_MSG_LEN = 30 * 1000 * 1000;
+ private static final int MAX_MSG_LEN = 8 * 1000 * 1000;
private final SatelliteServer.Processor<ServerHandler> processor = new SatelliteServer.Processor<ServerHandler>(
new ServerHandler());
@@ -74,8 +74,8 @@ public class BinaryListener implements Runnable {
args.protocolFactory(protFactory);
args.processor(processor);
args.executorService(es);
- args.stopTimeoutVal(2).stopTimeoutUnit(TimeUnit.MINUTES);
- args.transportFactory(new TFastFramedTransport.Factory(MAX_MSG_LEN));
+ args.stopTimeoutVal(15).stopTimeoutUnit(TimeUnit.SECONDS);
+ args.transportFactory(new TFastFramedTransport.Factory(8192, MAX_MSG_LEN));
return new TThreadPoolServer(args);
}