moved socket timeout configuration