diff options
-rw-r--r-- | src/main/java/org/openslx/imagemaster/thrift/server/BinaryListener.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/openslx/imagemaster/thrift/server/BinaryListener.java b/src/main/java/org/openslx/imagemaster/thrift/server/BinaryListener.java index 7d9c7f0..19a8a24 100644 --- a/src/main/java/org/openslx/imagemaster/thrift/server/BinaryListener.java +++ b/src/main/java/org/openslx/imagemaster/thrift/server/BinaryListener.java @@ -26,7 +26,9 @@ public class BinaryListener implements Runnable log.fatal( "Could not listen on port 9090" ); return; } - TServer server = new THsHaServer( new THsHaServer.Args( transport ).protocolFactory( protFactory ).processor( processor ).workerThreads( 8 ) ); + THsHaServer.Args args = new THsHaServer.Args( transport ).protocolFactory( protFactory ).processor( processor ).workerThreads( 8 ); + args.maxReadBufferBytes = 30l * 1000l * 1000l; + TServer server = new THsHaServer( args ); log.info( "Starting Binary Thrift" ); server.serve(); } |