mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-21 02:04:17 +00:00
core: increase limit of open file descriptors for NetworkManager.service
Note that POSIX select() can only handle up to 1024 descriptors. That means, our code (and the libraries that we use) must not use select(). Note that libndp uses select(), which means NetworkManager will crash when using file descriptors larger than 1023. On the other hand, depriving NetworkManager of file descriptors will also crash it. So libndp must be fixed ([1]). [1] https://listman.redhat.com/archives/libndp-list/2021-February/msg00000.html https://bugzilla.redhat.com/show_bug.cgi?id=1926599
This commit is contained in:
parent
04affbdd3d
commit
a708a172a6
|
@ -21,6 +21,10 @@ CapabilityBoundingSet=CAP_NET_ADMIN CAP_DAC_OVERRIDE CAP_NET_RAW CAP_NET_BIND_SE
|
|||
ProtectSystem=true
|
||||
ProtectHome=read-only
|
||||
|
||||
# We require file descriptors for DHCP etc. When activating many interfaces,
|
||||
# the default limit of 1024 is easily reached.
|
||||
LimitNOFILE=65536
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Also=NetworkManager-dispatcher.service
|
||||
|
|
Loading…
Reference in a new issue