Skip to content

Commit

Permalink
fix: Rebatch messages when restarting a publish stream
Browse files Browse the repository at this point in the history
This prevents publishers which are network isolated for a while from appearing disconnected when the server attempts to acknowledge messages.
  • Loading branch information
dpcollins-google committed Feb 5, 2021
1 parent 1cd1535 commit b3893f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class Constants {
.build();

public static final long MAX_PUBLISH_BATCH_COUNT = 1_000;
public static final long MAX_PUBLISH_BATCH_BYTES = 1024 * 1024 * 7 / 4; // 3.5 MiB
public static final long MAX_PUBLISH_BATCH_BYTES = 1024 * 1024 * 7 / 2; // 3.5 MiB

private Constants() {}
}

0 comments on commit b3893f7

Please sign in to comment.