aboutsummaryrefslogtreecommitdiff
path: root/nixos/modules
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2020-11-18 20:18:27 +0100
committerAndreas Rammhold <andreas@rammhold.de>2020-11-18 20:25:44 +0100
commit6f7d8e55282f58ecb36036ca5f669698b12040db (patch)
tree637d359c2af788b659a21be2f88b0fb64a36d30c /nixos/modules
parent193ace7e8a54de72c0d4f7671a605eb1fbb26a70 (diff)
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: https://github.com/archlinux/svntogit-packages/blob/99cba454bb0b69034bc45e97cde4a460bccfef4b/trunk/saned.socket#L4
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/hardware/sane.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/hardware/sane.nix b/nixos/modules/services/hardware/sane.nix
index b344dfc20610..03070a8f9e7c 100644
--- a/nixos/modules/services/hardware/sane.nix
+++ b/nixos/modules/services/hardware/sane.nix
@@ -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;
};
};