=head1 NAME

nbdkit-limit-filter - limit number of clients that can connect concurrently

=head1 SYNOPSIS

 nbdkit --filter=limit PLUGIN [limit=N]

=head1 DESCRIPTION

C<nbdkit-limit-filter> is an nbdkit filter that limits the number of
clients which can connect concurrently.  If more than C<limit=N>
(default: 1) clients try to connect at the same time then later
clients are rejected.

=head1 PARAMETERS

=over 4

=item B<limit=>N

Limit the number of concurrent clients to C<N>.  This parameter is
optional.  If not specified then the limit defaults to 1.  You can
also set this to 0 to make the number of clients unlimited (ie.
disable the filter).

=back

=head1 FILES

=over 4

=item F<$filterdir/nbdkit-limit-filter.so>

The filter.

Use C<nbdkit --dump-config> to find the location of C<$filterdir>.

=back

=head1 VERSION

C<nbdkit-limit-filter> first appeared in nbdkit 1.20.

=head1 SEE ALSO

L<nbdkit(1)>,
L<nbdkit-exitlast-filter(1)>,
L<nbdkit-exitwhen-filter(1)>,
L<nbdkit-ip-filter(1)>,
L<nbdkit-noparallel-filter(1)>,
L<nbdkit-rate-filter(1)>,
L<nbdkit-filter(3)>,
L<nbdkit-plugin(3)>.

=head1 AUTHORS

Richard W.M. Jones

=head1 COPYRIGHT

Copyright Red Hat
