Summary: | net-misc/minidlna leaks sockets, becomes unresponsive | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | peteru <bugs.gentoo.org> |
Component: | Current packages | Assignee: | Michał Górny <mgorny> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bugs.gentoo.org, jstein |
Priority: | Normal | Keywords: | PATCH, SECURITY |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Fixes leaked sockets by correctly initialising the ev struct |
Description
peteru
2021-01-30 20:44:02 UTC
Created attachment 685224 [details, diff]
Fixes leaked sockets by correctly initialising the ev struct
Initialising the ev struct before a call to connect() ensures that the socket reference is not lost. Verifying with netstat, one can see the sockets in TIME_WAIT state for a brief period of time and /proc/<pid>/fd shows a reasonable number of sockets being open.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fe2484bb7f9de72413eb25deb02e4212d81c8d0 commit 2fe2484bb7f9de72413eb25deb02e4212d81c8d0 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2021-01-31 09:14:14 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2021-01-31 09:16:28 +0000 net-misc/minidlna: Fix socket leak Closes: https://bugs.gentoo.org/768030 Signed-off-by: Michał Górny <mgorny@gentoo.org> .../minidlna/files/minidlna-1.3.0-fd-leak.patch | 28 ++++++++++++++++++++++ ...idlna-1.3.0.ebuild => minidlna-1.3.0-r1.ebuild} | 5 ++-- 2 files changed, 31 insertions(+), 2 deletions(-) |