Is there any way to achieve this with out using thread or fork?
In reply to connect() connection timeout by perlthirst