nixos/sane: bump the MaxConnections to a reasonable amount

Whenever I try to scan from another computer it has to establish >2
connections in order to succeed. With the connections being limited to 1
I can not scan any document.

This is also what other distributions ([Debian], [ArchLinux], …) have
done in one way or another.

[Debian]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850649#5
[ArchLinux]: no limit: 99cba454bb/trunk/saned.socket (L4)
This commit is contained in:
Andreas Rammhold 2020-11-18 20:18:27 +01:00
parent 193ace7e8a
commit 6f7d8e5528
No known key found for this signature in database
GPG key ID: E432E410B5E48C86

View file

@ -148,7 +148,7 @@ in
# saned needs to distinguish between IPv4 and IPv6 to open matching data sockets.
BindIPv6Only = "ipv6-only";
Accept = true;
MaxConnections = 1;
MaxConnections = 64;
};
};