-
Notifications
You must be signed in to change notification settings - Fork 0
HH-123895 increase request timeout #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
consul/aio.py
Outdated
| connector = aiohttp.TCPConnector(loop=self._loop, | ||
| verify_ssl=self.verify) | ||
| async with aiohttp.ClientSession(connector=connector) as session: | ||
| async with aiohttp.ClientSession(connector=connector, timeout=ClientTimeout(total=800)) as session: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
это должно конфигуриться.
и нужна логика, чтобы нельзя было вызвать в неправильном сочетании параметров с watch
consul/base.py
Outdated
| assert total_timeout, \ | ||
| 'total_timeout should be setter' | ||
| assert not self._convert_wait_to_seconds(wait) >= total_timeout, \ | ||
| 'wait should be less than total_timeout' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
можно цифры еще добавить. Так легче ошибку будет искать
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
добавил
consul/base.py
Outdated
| params.append(('index', index)) | ||
| if wait: | ||
| assert total_timeout, \ | ||
| 'total_timeout should be setter' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 'total_timeout should be setter' | |
| 'total_timeout should be setted' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
исправил
722f348 to
a71a597
Compare
No description provided.