slirp4netns
slirp4netns copied to clipboard
slirp4netns seems to be leaking sockets
I see a lot of slirp4netns connections in FIN_WAIT2 state:
slirp4netns version 1.3.1
commit: e5e368c4f5db6ae75c2fce786e31eef9da6bf236
libslirp: 4.8.0
SLIRP_CONFIG_VERSION_MAX: 5
libseccomp: 2.5.3
I'm using slirp4netns with rootless containers. I'm wondering whether this is a possible misconfiguration or a bug.
This seems to be easily reproducible when I start netcat to port 443 and send SIGTERM to nc process with kill. slirp4netns connection enters FIN_WAIT2 which is then never cleared.
Probably this should be reported to https://gitlab.freedesktop.org/slirp/libslirp/-/issues ?
I have the same and I can confirm that some IPs are days old (according to logs only connected once more than 3 days ago)
slirp4netns version 1.3.2
commit: 0f13345bcef588d2bb70d662d41e92ee8a816d85
libslirp: 4.9.0
SLIRP_CONFIG_VERSION_MAX: 6
libseccomp: 2.5.3
Probably this should be reported to https://gitlab.freedesktop.org/slirp/libslirp/-/issues ?
finally I created one because this is still unresolved: https://gitlab.freedesktop.org/slirp/libslirp/-/issues/86
Could somebody test the patch proposed here? https://gitlab.freedesktop.org/slirp/libslirp/-/issues/86#note_2871410