I don't undestand how to update my question, so i "reply for update". ;-)
If you want to ask "why not just check error code returned by socket() to find that script already reach maximum FD's?" the answer is simple: script must
reach maximum FD's! Becouse of many reasons. I can explain all of them by request.