Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

794-analytics-android-should-provide-resilience-on-corrupted-queuefil… #799

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ public String key() {
*/
static final int MAX_QUEUE_SIZE = 1000;
/** Our servers only accept payloads < 32KB. */
static final int MAX_PAYLOAD_SIZE = 32000; // 32KB.
static final int MAX_PAYLOAD_SIZE = 32 * 1024; // 32KB.
/**
* Our servers only accept batches < 500KB. This limit is 475KB to account for extra data that
* is not present in payloads themselves, but is added later, such as {@code sentAt}, {@code
* integrations} and other json tokens.
*/
@Private static final int MAX_BATCH_SIZE = 475000; // 475KB.
@Private static final int MAX_BATCH_SIZE = 475 * 1024; // 475KB.

@Private static final Charset UTF_8 = Charset.forName("UTF-8");
private static final String SEGMENT_THREAD_NAME = THREAD_PREFIX + "SegmentDispatcher";
Expand Down