问题
Does signalR backplane shares the connection information also?
I mean in case of "longpolling" the connect request goes to one server and start server goes to another server then it gives this error "The ConnectionId is in the incorrect format."
I am believing that this error is coming because the instance on which this request is going does not have any information about this connection id. I am using SQL server backplane but still facing this problem.
We are not supposed to use sticky session in our production environment
回答1:
No, SignalR doesn't share any information regarding client connect\disconnect over the backplane (for example - server2 is not notified about new client connections on server1)
So the problem is somewhere else...
回答2:
I got the problem. Its machine key issue only. I had to explicitly add machine key in web.config of my application. Then it is able to unprotect the token which is generated by another instance of my application. Now its working fine.
来源:https://stackoverflow.com/questions/30573063/does-signalr-backplane-shares-connections-also