Skip to content

Feature/async polling pool 578#593

Open
mijinummi wants to merge 4 commits into
StellarFlow-Network:mainfrom
mijinummi:feature/async-polling-pool-578
Open

Feature/async polling pool 578#593
mijinummi wants to merge 4 commits into
StellarFlow-Network:mainfrom
mijinummi:feature/async-polling-pool-578

Conversation

@mijinummi

Copy link
Copy Markdown
Contributor

Description

This PR addresses Issue #578, refactoring regional exchange polling loops onto a non-blocking asynchronous coroutine structure using asyncio.gather.

Key Modifications

  • Concurrent Async Migration: Replaced the legacy sequential polling loop inside src/network/polling.py with parallel aiohttp task groups.
  • Strict Boundary Timeouts: Wrapped individual endpoint loops in an automated asyncio timeout filter, forcing connection teardowns at a 2500ms cap.
  • Fault Isolation Protections: Ensured that timeout penalties or connectivity failures in unstable regions are logged locally and isolated cleanly, preventing them from stalling healthy network channels.

Closes #578

@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@mijinummi Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

🧠 Thread-Management | Non-Blocking Coroutine Pools for Regional Fallback Endpoints

1 participant