PubSub creates only 1 connection, strictly limitting amount of topics Chatterino can listen to #3014
Labels
bug
Something isn't working as intended, or works in a confusing/unintuitive way for the user
Feature: PubSub
Issues related to our PubSub system, topic we listen to and things that use pubsub messages' content
help wanted
Help is wanted to debug/fix this issue
needs testing
As defined here, these are the limits of how many connections and listen requests can PubSub make:
chatterino2/src/providers/twitch/PubsubClient.hpp
Lines 47 to 48 in 5ead70a
While those do comply with twitch docs, we don't scale connections to 10 at max (
MAX_PUBSUB_CONNECTIONS
isn't used anywhere), making it sometimes impossible to listen to certain topics.As a proof to my previous statement, I've added a some code (git diff) to see how many times we actually try to listen to a PubSub topic:
Note: 100 listen attempts instead of expected 50 might be caused due to following found by @Bun
The text was updated successfully, but these errors were encountered: