Create sbot connection for every query #16
Loading…
Reference in New Issue
No description provided.
Delete Branch "sbot-connection"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Unfortunately I don't understand the RPC reader code well enough (yet) to say exactly why this fixes the issue, but in the interest of pragmatism, this code does fix the issue.
The issue was:
Application error: SSB RPC failure: i/o
In this PR, I change publish to create its own sbot_connection, instead of using the sbot_connection created during sbot initialization.
Since we are now creating a new sbot_connection for each query, I removed sbot_connection as a field of Sbot.
This may have some overhead, but for all I know its negligible, and still seems to run instantly to me.
Someday would be curious to understand kuska better and exactly how it creates these connections, and why creating a new connection (via stream) seems to have interfered with the old previously created connection.
But maybe this is working for now.
Pull request closed