SET TIMEOUT FOR THE CONNECTION