Permalink
Browse files

Adding a buffer. This sets up the aggregated requests

  • Loading branch information...
1 parent 0831d35 commit 3d787eee7e091dd2017a65a25d5be7bee5a5f8c2 David Kowis committed Nov 20, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 betamax-proxy/src/main/java/co/freeside/betamax/proxy/ProxyServer.java
@@ -85,6 +85,13 @@ public void start(final Tape tape) {
}
proxyServerBootstrap.withFiltersSource(new HttpFiltersSourceAdapter() {
+ @Override
+ public int getMaximumRequestBufferSizeInBytes() {
+ //8MB request buffer
+ //TODO: Need to get this value from the configuration instead.
+ return 8388608;
+ }
+
@Override
public HttpFilters filterRequest(HttpRequest originalRequest) {
HttpFilters filters = new BetamaxFilters(originalRequest, tape);

0 comments on commit 3d787ee

Please sign in to comment.