1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-22 02:22:57 +00:00

Fixed loop of RECVFROM with fork when second address failed

This commit is contained in:
Gerhard Rieger 2023-12-08 16:19:15 +01:00
parent fdddba24b8
commit ab2b17dfc5
3 changed files with 97 additions and 0 deletions

View file

@ -7,6 +7,11 @@ Corrections:
In some situations xioclose() was called nested what could cause hanging
of OpenSSL in pthread_rwlock_wrlock()
socat 1.8.0.0 with addresses of type RECVFROM and option fork, where
the second address failed to connect/open in the child process, entered
a fork loop that was only stopped by FD exhaustion caused by FD leak.
Test: RECVFROM_FORK_LOOP
Features:
Total inactivity timeout option -T 0 now means 0.0 seconds; up to
version 1.8.0.0 it meant no total inactivity timeout.