Does signalR backplane shares connections also?

元气小坏坏 提交于 2020-01-17 05:16:22

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!