Skip to content
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

fix: add timeout to asyncio subscription send wait #184

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bitwise-constructs
Copy link

and removes possibility of fetching wrong response

What I did

updated asyncio patterns for web3 7

fixes: #

How I did it

How to verify it

Checklist

  • Passes all linting checks (pre-commit and CI jobs)
  • New test cases have been added and are passing
  • Documentation has been updated
  • PR title follows Conventional Commit standard (will be automatically included in the changelog)

@@ -17,6 +17,7 @@ class Web3SubscriptionsManager:
websocket_reconnect_max_tries: int = 3
rpc_response_timeout_count: int = 10
subscription_polling_time: float = 0.1 # secs
request_timeout: float = 50.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where'd 50 seconds come from?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's what web3.py uses as a default request timeout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants