Closed CyberFoxHax closed 3 years ago
Thanks for opening the issue and sorry to hear about the subs getting lost! Shoot us an email at hello@lbry.com with your email and we'll see if we can get them looked up on our end.
This is a known limitation at this time if you open 10 separate tabs and subscribe separately on each of them. We plan to make a few improvements with https://github.com/lbryio/lbry-desktop/issues/4830 to handle more cases and will make sure to note this one as well
Done and done, thanks for the hard work!
No the problem is not the JSONRPC on it's own but rather the fact that all subscriptions transmitted on each request.
Say you open 10 channels in tabs and then ctrl+tab to quickly subscribe to all of them. After clicking follow 10 times on 10 different tabs, how many additional subscriptions will that result in? The answer is 1. The last page is the only subscription that stuck. My educated guess was that instead of "adding" it just "sets" the subscriptions.
So i did some tests in Postman.
request lifted from clicking "follow" a request POST is sent to https://api.lbry.tv/api/v1/proxy?m=preference_set
Original Payload:
Doctored Payload:
Conclusion: You shouldn't send the entire state to the client and expect it to send it back flawlessly. You need to change to "adding" instead of "setting".
Note: This was tested on Odysee.