-
-
Notifications
You must be signed in to change notification settings - Fork 38
Description
Inquiry
Maintaining many connections at once.
Context
Hi, me again. In my project I have a lot of assets to watch simultaneously (26-29). But the farthest that I could go is 4 assets for 1 API.
So I created 8 different SSIDs and tried distributing all the symbols evenly (4 per API) across all of them. But the farthest I could go was 2 random API connecting simultaneously. So I'm asking, is my approach adecuate, or should I rethink the connection process completely?
Here's some comprehensible debug output for better understanding:
New API created, index: 0
New API created, index: 1
New API created, index: 2
New API created, index: 3
New API created, index: 4
New API created, index: 5
New API created, index: 6
Total APIs created: 7
Failed to subscribe AEDCNY_otc on connection 1: PocketOptionError, Core error: Channel sender error: send to a half closed channel
Failed to subscribe AUDCHF_otc on connection 2: PocketOptionError, Core error: Channel sender error: send to a half closed channel
Failed to subscribe AUDNZD_otc on connection 3: PocketOptionError, Core error: Channel sender error: send to a half closed channelHere I create 7 APIs because I have to watch 26 different assets at once.
P.S if this can in any way give some more context, I've also added some considerable timeouts between requests to try to prevent the server from detecting malicious activity.
Environment
- macOS Tahoe 26.4
- 3.12
- Latest
Resources Checked
- [v] Documentation
- [v] Existing Examples
- [v] Previous Issues