allow changing socket timeout, prevent infinite loops on failing getLine calls