Increase OkhttpInterceptor default body size
Summary: The default max body size for the OkHttpInterceptor that is reported to Flipper seems unreasonably small, as most images, graphql responses etc are bigger. Increased it to 1MB Since the network plugin doesn't do any work if it is not explicitly enabled in Flipper, this should not lead to further performance regression / starvation. Reviewed By: jknoxville Differential Revision: D23375720 fbshipit-source-id: e901105209aec7108d61fc20295a149c5582f22d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
cd197aeaaf
commit
2d7c464f3e
@@ -40,8 +40,8 @@ import okio.BufferedSource;
|
|||||||
public class FlipperOkhttpInterceptor
|
public class FlipperOkhttpInterceptor
|
||||||
implements Interceptor, BufferingFlipperPlugin.MockResponseConnectionListener {
|
implements Interceptor, BufferingFlipperPlugin.MockResponseConnectionListener {
|
||||||
|
|
||||||
// By default, limit body size (request or response) reporting to 100KB to avoid OOM
|
// By default, limit body size (request or response) reporting to 1MB to avoid OOM
|
||||||
private static final long DEFAULT_MAX_BODY_BYTES = 100 * 1024;
|
private static final long DEFAULT_MAX_BODY_BYTES = 1024 * 1024;
|
||||||
|
|
||||||
private final long mMaxBodyBytes;
|
private final long mMaxBodyBytes;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user