There is a bug in socat 1.7.4.4: The retry option with some address types (TCP) did not close() the sockets after failed attempts, resulting in an FD leak. According to http://www.dest-unreach.org/socat/CHANGES this was fixed in version 1.7.4.5 but that version was never released. The fix is present in version 1.8.0.0. Would it be possible to get socat updated to the newer version? Reproducible: Always Steps to Reproduce: 1. socat -ddd /dev/null TCP-CONNECT:192.168.2.1:1,forever,connect-timeout=1 Actual Results: You'll see the following lines amongst the output: 2024/02/13 14:17:20 socat[1137201] I socket(2, 1, 6) -> 6 2024/02/13 14:17:22 socat[1137201] I socket(2, 1, 6) -> 7 2024/02/13 14:17:24 socat[1137201] I socket(2, 1, 6) -> 8 2024/02/13 14:17:26 socat[1137201] I socket(2, 1, 6) -> 9 Eventually socat will run out of file descriptors and repeatedly output: 2024/02/13 14:11:44 socat[1134747] I socket(2, 1, 6) -> -1 2024/02/13 14:11:44 socat[1134747] I socket(2, 1, 6): Too many open files Expected Results: socat should not run out of file descriptors when retrying a connection
FEDORA-2024-455e8cbb93 (socat-1.8.0.0-2.fc39) has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-455e8cbb93
FEDORA-2024-455e8cbb93 has been pushed to the Fedora 39 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-455e8cbb93` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-455e8cbb93 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-455e8cbb93 (socat-1.8.0.0-2.fc39) has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report.