I tested now the second patch as well. There are no more socket leaks with both fixes. Thanks! Posted at Nginx Forum: https://forum.nginx.org/read.php?2,267669,267928#msg-267928