<div dir="ltr"><span style="font-size:13px">SO_RCVTIMEO is not sufficient, as it does not affect connect().</span><br><div><span style="font-size:13px"><br></span></div><div>Killing threads is never safe, as the killed thread could have acquired all kinds of resources.  One always has to remember that threads are not processes and are not subject to resource management.</div><div><br></div><div>-Hans</div></div>