git: 9157372d3e57 - stable/14 - devd: raise the maximum allowed client to 50

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Tue, 01 Apr 2025 12:32:02 UTC
The branch stable/14 has been updated by bapt:

URL: https://cgit.FreeBSD.org/src/commit/?id=9157372d3e579c4f0f47f6d0507e0b7a7b57ae82

commit 9157372d3e579c4f0f47f6d0507e0b7a7b57ae82
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2025-03-20 08:53:16 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2025-04-01 12:31:59 +0000

    devd: raise the maximum allowed client to 50
    
    since the creation of libudev-devd, but also with powerd, recent libusb
    changes etc. 10 client is not enough anymore to cover the desktop needs
    
    and end users often ends up with:
    sonewconn: pcb 0xfffff8004dd43780 (local:/var/run/devd.seqpacket.pipe)...
    
    raise the maximum allowed client to 50, which should be enough to cover
    user requirements.
    
    MFC After:      1 week
    
    (cherry picked from commit 5682eee1efd35fb65751641181ae2a50d86efaab)
---
 sbin/devd/devd.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc
index 05715c18708f..28aab82803c8 100644
--- a/sbin/devd/devd.cc
+++ b/sbin/devd/devd.cc
@@ -939,7 +939,7 @@ create_socket(const char *name, int socktype)
 	return (fd);
 }
 
-static unsigned int max_clients = 10;	/* Default, can be overridden on cmdline. */
+static unsigned int max_clients = 50;	/* Default, can be overridden on cmdline. */
 static unsigned int num_clients;
 
 static list<client_t> clients;