Skip to content

Commit

Permalink
clusterd: Increase max broadcast push to 80000
Browse files Browse the repository at this point in the history
/etc/group.debian is now 65538 bytes and can no longer be pushed with
udp push (`clusterd --push FILE`) . We can't just change the caller
to tcp push (`clusterd push FILE`), because the tcp push command
completes asynchronously and the following `/usr/sbin/clusterd
--flush-gidcache` would be to early.

Increase maximum size for udp push as a temporary workaround.
  • Loading branch information
donald committed Mar 4, 2019
1 parent 8d34998 commit 9a9993c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clusterd/clusterd
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ sub push_file {
my $rpc;
if ($st->type eq 'F') {
$rpc='filedata';
$st->size<=65536 or die "$filename: to big for broadcast (max 65536 bytes)\n";
$st->size<=80000 or die "$filename: to big for broadcast (max 80000 bytes)\n";
if ($st->size==0) {
udp_broadcast_message($donald_s,$rpc,$st,0,'');
return;
Expand Down

0 comments on commit 9a9993c

Please sign in to comment.