setting timeouts to httpconnection