From 6f7d8e55282f58ecb36036ca5f669698b12040db Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Wed, 18 Nov 2020 20:18:27 +0100 Subject: [PATCH] nixos/sane: bump the MaxConnections to a reasonable amount MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- nixos/modules/services/hardware/sane.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/hardware/sane.nix b/nixos/modules/services/hardware/sane.nix index b344dfc2061..03070a8f9e7 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; }; };