connect() timeout support added