setting connection timeout